Download latest PDF - Read the Docs
Transcript
pypet Documentation, Release 0.1.0
An example main script might look like the following:
env = Environment(trajectory='Clustered_Network',
filename='experiments/example_11/HDF5/',
log_folder='experiments/example_11/LOGS/',
continuable=False,
multiproc=True,
ncores=2,
use_pool=False)
#Get the trajectory container
traj = env.v_trajectory
# We create a Manager and pass all our components to the Manager.
# Note the order, MyNeuronGroupsComponent are scheduled before MyConnectionsComponent,
# and the Fano Factor computation depends on the MyMonitorAnalysisComponent
my_manager = NetworkManager(network_runner=MyNetworkRunner(),
component_list=(MyNeuronGroupsComponent(), MyConnectionsComponent()),
analyser_list=(MyMonitorAnalysisComponent(), MyFanoFactorComputingComponent()))
# Add parameters
my_manager.add_parameters(traj)
# Explore different values of a parameter
explore_list = np.arange(0.0, 42.0, 0.5).tolist()
traj.f_explore({'some.random.parameter.of.my.network' : explore_list})
# Pre-build network components
my_manager.pre_build(traj)
1.4. Cookbook
59