The Virtual Brain Project

Table Of Contents

Previous topic

creators Package

Next topic

db Package

This Page

datatypes Package

simulation_state

DataType for storing a simulator’s state in files and as DB reference.

class tvb.adapters.datatypes.simulation_state.SimulationState(**kwargs)[source]

Bases: tvb.basic.neotraits._core.HasTraits

Simulation State, prepared for H5 file storage.

history : tvb.adapters.datatypes.simulation_state.SimulationState.history = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

current_state : tvb.adapters.datatypes.simulation_state.SimulationState.current_state = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

current_step : tvb.adapters.datatypes.simulation_state.SimulationState.current_step = Int(field_type=<class ‘int’>, default=0, required=True)

monitor_stock_1 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_1 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_2 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_2 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_3 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_3 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_4 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_4 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_5 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_5 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_6 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_6 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_7 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_7 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_8 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_8 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_9 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_9 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_10 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_10 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_11 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_11 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_12 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_12 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_13 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_13 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_14 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_14 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

monitor_stock_15 : tvb.adapters.datatypes.simulation_state.SimulationState.monitor_stock_15 = NArray(label=’‘, dtype=float64, default=None, dim_names=(), ndim=None, required=False)

gid : tvb.basic.neotraits._core.HasTraits.gid = Attr(field_type=<class ‘uuid.UUID’>, default=None, required=True)

current_state

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

current_step

Declares an integer This is different from Attr(field_type=int). The former enforces int subtypes This allows all integer types, including numpy ones that can be safely cast to the declared type according to numpy rules

fill_into(simulator_algorithm)[source]

Populate a Simulator object from current stored-state.

history

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_1

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_10

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_11

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_12

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_13

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_14

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_15

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_2

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_3

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_4

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_5

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_6

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_7

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_8

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

monitor_stock_9

Declares a numpy array. dtype enforces the dtype. The default dtype is float32. An optional symbolic shape can be given, as a tuple of Dim attributes from the owning class. The shape will be enforced, but no broadcasting will be done. domain declares what values are allowed in this array. It can be any object that can be checked for membership Defaults are checked if they are in the declared domain. For performance reasons this does not happen on every attribute set.

populate_from(simulator_algorithm)[source]

Prepare a state for storage from a Simulator object.