#NEWLINE# def set_states( self , pdict ) : #NEWLINE# #INDENT# if ( not any ( self . states ) ) : #NEWLINE# #INDENT# self . states = [ [ self . be . array ( x , ** self . get_param_attrs ( ) ) for x in slist ] for slist in pdict [ 'states' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for ( dlist , slist ) in zip ( self . states , dst [ 'states' ] ) : #NEWLINE# #INDENT# for ( dst , src ) in zip ( dlist , slist ) : #NEWLINE# #INDENT# dst . set ( src )