#NEWLINE# def test_postprocessing( self ) : #NEWLINE# #INDENT# filename = 'testpostproc.hdf5' #NEWLINE# env1 = self . make_environment ( filename , 'k1' ) [ 0 ] #NEWLINE# env2 = self . make_environment ( filename , 'k2' , log = False ) [ 0 ] #NEWLINE# traj1 = env1 . v_trajectory #NEWLINE# traj2 = env2 . v_trajectory #NEWLINE# trajs = [ traj1 , traj2 ] #NEWLINE# traj1 . f_add_result ( 'test.run_00000000.f' , 555 ) #NEWLINE# traj2 . f_add_result ( 'test.run_00000000.f' , 555 ) #NEWLINE# traj1 . f_add_link ( 'linking' , traj1 . f_get ( 'f' ) ) #NEWLINE# traj2 . f_add_link ( 'linking' , traj2 . f_get ( 'f' ) ) #NEWLINE# for traj in trajs : #NEWLINE# #INDENT# traj . f_add_parameter ( 'x' , 1 , comment = '1st' ) #NEWLINE# traj . f_add_parameter ( 'y' , 1 , comment = '2nd' ) #NEWLINE# #UNINDENT# exp_dict2 = { #NEWLINE# #INDENT# 'x' : [ 1 , 2 , 3 , 4 , 1 , 2 , 2 , 3 ] , #NEWLINE# 'y' : [ 1 , 2 , 3 , 4 , 1 , 2 , 0 , 1 ] , #NEWLINE# #UNINDENT# } #NEWLINE# traj2 . f_explore ( exp_dict2 ) #NEWLINE# exp_dict1 = { #NEWLINE# #INDENT# 'x' : [ 1 , 2 , 3 , 4 ] , #NEWLINE# 'y' : [ 1 , 2 , 3 , 4 ] , #NEWLINE# #UNINDENT# } #NEWLINE# traj1 . f_explore ( exp_dict1 ) #NEWLINE# env2 . f_run ( Multiply ( ) , 22 ) #NEWLINE# env1 . f_add_postprocessing ( postproc , 42 ) #NEWLINE# env1 . f_run ( Multiply ( ) , 22 ) #NEWLINE# traj1 . f_load ( load_data = 2 ) #NEWLINE# traj2 . f_load ( load_data = 2 ) #NEWLINE# self . compare_trajectories ( traj1 , traj2 ) #NEWLINE# env1 . f_disable_logging ( ) #NEWLINE# env2 . f_disable_logging ( )