bluecellulab.circuit.simulation_access

Module to access the simulation results.

Functions

get_synapse_replay_spikes(f_name)

Read the .h5 file containing the spike replays.

Classes

BluepySimulationAccess(sim_config)

Bluepy implementation of SimulationAccess protocol.

SimulationAccess(*args, **kwargs)

Protocol that defines the simulation access layer.

SonataSimulationAccess(sim_config)

Sonata implementation of SimulationAccess protocol.

class bluecellulab.circuit.simulation_access.BluepySimulationAccess(sim_config)[source]

Bluepy implementation of SimulationAccess protocol.

Parameters:

sim_config (str | Path | SimulationConfig)

get_soma_time_trace(t_step=None)[source]

Retrieve the time trace from the main simulation.

Parameters:

t_step (Optional[float])

Return type:

ndarray

get_soma_voltage(cell_id, t_start, t_end, t_step=None)[source]

Retrieve the soma voltage of main simulation.

Parameters:
  • cell_id (CellId)

  • t_start (float)

  • t_end (float)

  • t_step (Optional[float])

Return type:

ndarray

class bluecellulab.circuit.simulation_access.SimulationAccess(*args, **kwargs)[source]

Protocol that defines the simulation access layer.

get_spikes()[source]

Get spikes from the main simulation.

Return type:

dict[CellId, ndarray]

class bluecellulab.circuit.simulation_access.SonataSimulationAccess(sim_config)[source]

Sonata implementation of SimulationAccess protocol.

Parameters:

sim_config (str | Path | SimulationConfig)

bluecellulab.circuit.simulation_access.get_synapse_replay_spikes(f_name)[source]

Read the .h5 file containing the spike replays.

Parameters:

f_name (str) – Path to SONATA .h5 spike file.

Return type:

dict[CellId, ndarray]

Returns:

Dictionary mapping CellId(population, node_id) to np.array of spike times.