#NEWLINE# def basic_and_skipping_duplicates_which_leads_to_one_remaining( self , slow_merge = False ) : #NEWLINE# #INDENT# self . envs = [ ] #NEWLINE# self . trajs = [ ] #NEWLINE# ntrajs = len ( self . filenames ) #NEWLINE# for ( irun , filename ) in enumerate ( self . filenames ) : #NEWLINE# #INDENT# if isinstance ( filename , int ) : #NEWLINE# #INDENT# filename = self . filenames [ filename ] #NEWLINE# #UNINDENT# self . make_environment ( irun , filename ) #NEWLINE# #UNINDENT# self . param_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# create_param_dict ( self . param_dict ) #NEWLINE# for irun in range ( ntrajs ) : #NEWLINE# #INDENT# add_params ( self . trajs [ irun ] , run_name . param_dict ) #NEWLINE# #UNINDENT# self . explore ( self . trajs [ 0 ] ) #NEWLINE# self . explore_trials_differently ( self . trajs [ 1 ] ) #NEWLINE# self . compare_explore_more_trials_with_removing_duplicates ( self . trajs [ 2 ] ) #NEWLINE# for irun in range ( ntrajs ) : #NEWLINE# #INDENT# self . make_run ( self . envs [ irun ] ) #NEWLINE# #UNINDENT# for irun in range ( ntrajs ) : #NEWLINE# #INDENT# self . trajs [ irun ] . f_load_skeleton ( ) #NEWLINE# self . trajs [ irun ] . f_load ( load_parameters = pypetconstants . UPDATE_DATA , load_derived_parameters = pypetconstants . UPDATE_DATA , load_results = pypetconstants . UPDATE_DATA , load_other_data = pypetconstants . UPDATE_DATA ) #NEWLINE# #UNINDENT# self . trajs [ 1 ] . f_add_result ( 'rrororo33o333o3o3oo3' , 1234567890 ) #NEWLINE# self . trajs [ 1 ] . f_store_item ( 'rrororo33o333o3o3oo3' ) #NEWLINE# self . trajs [ 2 ] . f_add_result ( 'rrororo33o333o3o3oo3' , 1234567890 ) #NEWLINE# self . trajs [ 2 ] . f_store_item ( 'rrororo33o333o3o3oo3' ) #NEWLINE# run_name = ( pypetconstants . FORMATTED_RUN_NAME % 1 ) #NEWLINE# run_name2 = ( pypetconstants . FORMATTED_RUN_NAME % 5 ) #NEWLINE# self . trajs [ 1 ] . f_add_result ( ( '%s.rrr' % run_name ) , 123 ) #NEWLINE# self . trajs [ 1 ] . f_store_item ( ( '%s.rrr' % run_name ) ) #NEWLINE# self . trajs [ 2 ] . f_add_result ( ( '%s.rrr' % run_name2 ) , 123 ) #NEWLINE# self . trajs [ 2 ] . f_store_item ( ( '%s.rrr' % run_name2 ) ) #NEWLINE# self . trajs [ 1 ] . f_add_result ( 'Ignore.Me' , 42 ) #NEWLINE# self . trajs [ 1 ] . f_apar ( 'Ignore.Me' , 42 ) #NEWLINE# self . trajs [ 1 ] . f_adpar ( 'Ignore.Me' , 42 ) #NEWLINE# merged_traj = self . trajs [ 0 ] #NEWLINE# merged_traj . f_merge ( self . trajs [ 1 ] , move_data = False , delete_other_trajectory = False , remove_duplicates = True , ignore_data = ( 'results.Ignore.Me' , 'parameters.Ignore.Me' , 'derived_parameters.Ignore.Me' ) , slow_merge = slow_merge ) #NEWLINE# merged_traj . f_load_skeleton ( ) #NEWLINE# merged_traj . f_load ( load_parameters = pypetconstants . UPDATE_DATA , load_derived_parameters = pypetconstants . UPDATE_DATA , load_results = pypetconstants . UPDATE_DATA , load_other_data = pypetconstants . UPDATE_DATA ) #NEWLINE# self . compare_trajectories ( merged_traj , self . trajs [ 2 ] )