bsb.simulation package¶
Submodules¶
bsb.simulation.simulation module¶
- class bsb.simulation.simulation.Simulation(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
object
- connection_models: cfgdict[ConnectionModel]¶
- devices: cfgdict[DeviceModel]¶
- duration: float¶
Base implementation of all the different configuration attributes. Call the factory function
attr()
instead.
- get_connectivity_sets() Mapping[ConnectionModel, ConnectivitySet] [source]¶
- Return type:
- get_model_of(type: CellType | ConnectionStrategy) CellModel | ConnectionModel | None [source]¶
- Parameters:
type (CellType | ConnectionStrategy)
- Return type:
CellModel | ConnectionModel | None
- get_node_name()¶
bsb.simulation.adapter module¶
- class bsb.simulation.adapter.SimulationData(simulation: Simulation, result=None)[source]¶
Bases:
object
- Parameters:
simulation (Simulation)
- class bsb.simulation.adapter.SimulatorAdapter[source]¶
Bases:
ABC
- collect(simulation, simdata, simresult, comm=None)[source]¶
Collect the output of a simulation that completed
- abstract prepare(simulation, comm=None)[source]¶
Reset the simulation backend and prepare for the given simulation.
- Parameters:
simulation (Simulation) – The simulation configuration to prepare.
comm – The mpi4py MPI communicator to use. Only nodes in the communicator will participate in the simulation. The first node will idle as the main node.
bsb.simulation.cell module¶
- class bsb.simulation.cell.CellModel(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
SimulationComponent
Cell models are simulator specific representations of a cell type.
- get_node_name()¶
bsb.simulation.component module¶
bsb.simulation.connection module¶
bsb.simulation.device module¶
bsb.simulation.parameter module¶
- class bsb.simulation.parameter.Parameter(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
object
- get_node_name()¶
- type¶
Base implementation of all the different configuration attributes. Call the factory function
attr()
instead.
- value: ParameterValue¶
Base implementation of all the different configuration attributes. Call the factory function
attr()
instead.
bsb.simulation.results module¶
- class bsb.simulation.results.SimulationRecorder[source]¶
Bases:
object
- flush(segment: neo.core.Segment)[source]¶
- Parameters:
segment (neo.core.Segment)
bsb.simulation.targetting module¶
- class bsb.simulation.targetting.BranchLocTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
LabelTargetting
- get_node_name()¶
- class bsb.simulation.targetting.ByIdTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
FractionFilter
,CellTargetting
Targets all given identifiers.
- get_node_name()¶
- class bsb.simulation.targetting.ByLabelTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
CellModelFilter
,FractionFilter
,CellTargetting
Targets all given labels.
- get_node_name()¶
- class bsb.simulation.targetting.CellModelTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
CellModelFilter
,FractionFilter
,CellTargetting
Targets all cells of certain cell models.
- get_node_name()¶
- class bsb.simulation.targetting.CellTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
Targetting
- get_node_name()¶
- class bsb.simulation.targetting.ConnectionTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
Targetting
- get_node_name()¶
- class bsb.simulation.targetting.CylindricalTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
CellModelFilter
,FractionFilter
,CellTargetting
Targets all cells in a cylinder along specified axis.
- get_node_name()¶
- class bsb.simulation.targetting.FractionFilter[source]¶
Bases:
object
- count¶
Base implementation of all the different configuration attributes. Call the factory function
attr()
instead.
- class bsb.simulation.targetting.LabelTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
LocationTargetting
- get_node_name()¶
- labels¶
- class bsb.simulation.targetting.LocationTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
object
- get_node_name()¶
- class bsb.simulation.targetting.RepresentativesTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
CellModelFilter
,FractionFilter
,CellTargetting
Targets all identifiers of certain cell types.
- get_node_name()¶
- class bsb.simulation.targetting.SomaTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
LocationTargetting
- get_node_name()¶
- class bsb.simulation.targetting.SphericalTargetting(*args, _parent=None, _key=None, **kwargs)[source]¶
Bases:
CellModelFilter
,FractionFilter
,CellTargetting
Targets all cells in a sphere.
- get_node_name()¶
- get_targets(adapter, simulation, simdata)[source]¶
Target all or certain cells within a sphere of specified radius.
Module contents¶
- class bsb.simulation.SimulationBackendPlugin(Adapter: bsb.simulation.adapter.SimulatorAdapter, Simulation: bsb.simulation.simulation.Simulation)[source]¶
Bases:
object
- Parameters:
Adapter (SimulatorAdapter)
Simulation (Simulation)
- Adapter: SimulatorAdapter¶
- Simulation: Simulation¶