#NEWLINE# def test_with_pre_run( self ) : #NEWLINE# #INDENT# runner = NetworkRunner ( ) #NEWLINE# components = [ TheNeurons ( ) , TheConnection ( ) , TheSimulation ( ) ] #NEWLINE# analyser = [ TheMonitors ( ) ] #NEWLINE# nm = NetworkManager ( network_runner = runner , component_list = components , analyser_list = analyser ) #NEWLINE# env = Environment ( trajectory = ( 'Test_' + repr ( time . time ( ) ) . replace ( '.' , '_' ) ) , filename = make_temp_dir ( os . path . join ( 'experiments' , 'tests' , 'briantests' , 'HDF5' , 'briantest.hdf5' ) ) , file_title = 'test' , log_config = get_log_config ( ) , dynamic_imports = [ 'pypet.brian2.parameter.BrianParameter' , BrianMonitorResult , BrianResult ] , multiproc = True , ncores = 2 ) #NEWLINE# traj = env . v_traj #NEWLINE# nm . add_parameters ( traj ) #NEWLINE# traj . f_explore ( { #NEWLINE# #INDENT# 'v01' : [ ( 11 * mV ) , ( 13 * mV ) ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# nm . pre_run_network ( traj ) #NEWLINE# env . f_run ( nm . run_network ) #NEWLINE# self . check_data ( traj )