pygrenade_vx.network.ResourceManager

class pygrenade_vx.network.ResourceManager

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: _pygrenade_vx_network.ResourceManager, arg0: _pygrenade_vx_network.ResourceManager) -> None

  2. __init__(self: _pygrenade_vx_network.ResourceManager) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

add_config(self, neuron, parameter_space, …)

Add the configuration for a neuron to the resource manager.

get_compartments(self)

Returns descriptors for all compartments for which a configuration is stored.

get_config(self, compartment)

Return the configuration for a compartment in the resource maanger.

get_recordable_pairs(self)

get_total(self)

Returns total resources required by the contents of the resource manager.

remove_config(self, neuron)

Remove the configuration of the given neuron from the resource manager.

write_graphviz(self, filename, neuron, name, …)

Writes neuron topology in graphviz format.

add_config(self: _pygrenade_vx_network.ResourceManager, neuron: _pygrenade_vx_network.Neuron, parameter_space: _pygrenade_vx_network.Neuron.ParameterSpace, environment: _pygrenade_vx_network.Environment)None

Add the configuration for a neuron to the resource manager. Calculates the resources required for placement depending on the mechanisms, compartments and parameterization of the neuron.

get_compartments(self: _pygrenade_vx_network.ResourceManager)list[_pygrenade_vx_network.CompartmentOnNeuron]

Returns descriptors for all compartments for which a configuration is stored.

get_config(self: _pygrenade_vx_network.ResourceManager, compartment: _pygrenade_vx_network.CompartmentOnNeuron)_pygrenade_vx_network.NumberTopBottom

Return the configuration for a compartment in the resource maanger.

get_recordable_pairs(self: _pygrenade_vx_network.ResourceManager)set[tuple[_pygrenade_vx_network.CompartmentOnNeuron, _pygrenade_vx_network.CompartmentOnNeuron]]
get_total(self: _pygrenade_vx_network.ResourceManager)_pygrenade_vx_network.NumberTopBottom

Returns total resources required by the contents of the resource manager.

remove_config(self: _pygrenade_vx_network.ResourceManager, neuron: _pygrenade_vx_network.Neuron)None

Remove the configuration of the given neuron from the resource manager.

write_graphviz(self: _pygrenade_vx_network.ResourceManager, filename: str, neuron: _pygrenade_vx_network.Neuron, name: str, append: bool = False)None

Writes neuron topology in graphviz format. Contains information about the resources required by each compartment of the neuron.