#NEWLINE# def test_run( self ) : #NEWLINE# #INDENT# self . explore ( self . traj ) #NEWLINE# self . add_array_params ( self . traj ) #NEWLINE# self . traj . f_add_parameter ( 'TEST' , 'test_run' ) #NEWLINE# self . env . f_run ( write_into_shared_storage ) #NEWLINE# newtraj = self . load_trajectory ( trajectory_name = self . traj . v_name , as_new = False ) #NEWLINE# self . traj . f_load_skeleton ( ) #NEWLINE# self . traj . f_load_items ( self . traj . f_to_dict ( ) . keys ( ) , only_empties = True ) #NEWLINE# self . check_insertions ( self . traj ) #NEWLINE# self . check_insertions ( newtraj ) #NEWLINE# size = os . path . getsize ( self . filename ) #NEWLINE# size_in_mb = ( size / 1000000.0 ) #NEWLINE# get_root_logger ( ) . info ( ( 'Size is %sMB' % str ( size_in_mb ) ) ) #NEWLINE# self . assertTrue ( ( size_in_mb < 2.0 ) , ( 'Size is %sMB > 2MB' % str ( size_in_mb ) ) ) #NEWLINE# for res in self . traj . results . f_iter_leaves ( ) : #NEWLINE# #INDENT# if isinstance ( res , SharedResult ) : #NEWLINE# #INDENT# for key in res . f_to_dict ( ) : #NEWLINE# #INDENT# item = res [ key ] #NEWLINE# if isinstance ( item , SharedData ) : #NEWLINE# #INDENT# make_ordinary_result ( res , key , trajectory = newtraj . traj ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# newtraj = self . load_trajectory ( trajectory_name = self . traj . v_name , as_new = False ) #NEWLINE# self . compare_trajectories ( self . traj , newtraj )