pygrenade_vx.network.CoordinateSystem
-
class
pygrenade_vx.network.CoordinateSystem Bases:
pybind11_builtins.pybind11_object-
__init__(*args, **kwargs) Overloaded function.
__init__(self: _pygrenade_vx_network.CoordinateSystem) -> None
__init__(self: _pygrenade_vx_network.CoordinateSystem, arg0: _pygrenade_vx_network.CoordinateSystem) -> None
Methods
__init__(*args, **kwargs)Overloaded function.
assign_compartment_adjacent(self, x, y, …)Assign compartment descriptor to the neuron circuit and to all directly connected neuron circuits.
clear(self)clear_empty_connections(self, x_max)Clear connections with open ends.
clear_invalid_connections(self, x_max)Clear empty and double connections in given part of coordinate system.
connect_shared(self, x_source, x_target, y)Connects two neuron circuits in the same row via a conductance.
connected(self, x, y)Check for any connection of the given neuron circuit either direct and via conductance.
connected_left(self, x, y)Check for direct connection to left neighbor.
connected_left_shared(self, x, y)Check if neuron circuit is connected to its left neighbor circuit via conductance.
connected_right(self, x, y)Check for direct connection to right neighbor.
connected_right_shared(self, x, y)Check for connection to right neighbor via conductance.
connected_shared_conductance(self, x, y)Return coordinates of all neuron circuits connected to the given one via the shared line.
connected_shared_short(self, x, y)Return coordinates of all neuron circuits directly connected to the given one via the shared line.
connected_top_bottom(self, x, y)Check for direct connection to neighbor in opposite row.
double_switch(self, x_max)Check if any neuron circuit is connected via a conductance and directly to the shared line.
even_parity(self)Return set of all compartments that have neuron circuits in columns with even parity.
find_neuron_circuits(self, compartment)Return coordinates of all neuron circuits with the given compartment descriptor assigned.
get(self, x, y)get_compartment(self, coordinate_x, coordinate_y)get_config(self, x, y)has_double_connections(self, x_max)Check for connection both directly and via shared line.
has_empty_connections(self, x_max)Check for connections with open ends.
odd_parity(self)Return set of all compartments that have neuron circuits in columns with odd parity.
parity(self, compartment)Check if the compartment has neuron circuits of even and odd parity.
set(self, x, y, neuron_circuit)set_compartment(self, coordinate_x, …)set_config(self, x, y, neuron_circuit_config_in)short_circuit(self, x_max)Check if any compartments are short circuited.
Attributes
-
assign_compartment_adjacent(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int, compartment: _pygrenade_vx_network.CompartmentOnNeuron) → _pygrenade_vx_network.NumberTopBottom Assign compartment descriptor to the neuron circuit and to all directly connected neuron circuits.
-
clear(self: _pygrenade_vx_network.CoordinateSystem) → None
-
clear_empty_connections(self: _pygrenade_vx_network.CoordinateSystem, x_max: int) → None Clear connections with open ends.
-
clear_invalid_connections(self: _pygrenade_vx_network.CoordinateSystem, x_max: int) → None Clear empty and double connections in given part of coordinate system. Double connections occur if a neuron circuit connects to the shared line directly and via a resistor at the same time. Both connections are deleted then.
Connects two neuron circuits in the same row via a conductance. Connection to shared line directly for neuron circuit as x_source and via conductance for neuron circuit at x_target.
-
connected(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int) → bool Check for any connection of the given neuron circuit either direct and via conductance.
-
connected_left(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int) → bool Check for direct connection to left neighbor.
Check if neuron circuit is connected to its left neighbor circuit via conductance.
-
connected_right(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int) → bool Check for direct connection to right neighbor.
Check for connection to right neighbor via conductance.
Return coordinates of all neuron circuits connected to the given one via the shared line. The check includes those connections starting from the given neuron circuit with a direct connection to the shared line and ending at another neuron circuit with a resistor and vice versa.
Return coordinates of all neuron circuits directly connected to the given one via the shared line.
-
connected_top_bottom(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int) → bool Check for direct connection to neighbor in opposite row.
-
property
coordinate_system
-
double_switch(self: _pygrenade_vx_network.CoordinateSystem, x_max: int) → bool Check if any neuron circuit is connected via a conductance and directly to the shared line.
-
even_parity(self: _pygrenade_vx_network.CoordinateSystem) → set[_pygrenade_vx_network.CompartmentOnNeuron] Return set of all compartments that have neuron circuits in columns with even parity.
-
find_neuron_circuits(self: _pygrenade_vx_network.CoordinateSystem, compartment: _pygrenade_vx_network.CompartmentOnNeuron) → list[tuple[int, int]] Return coordinates of all neuron circuits with the given compartment descriptor assigned.
-
get(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int) → _pygrenade_vx_network.NeuronCircuit
-
get_compartment(self: _pygrenade_vx_network.CoordinateSystem, coordinate_x: int, coordinate_y: int) → Optional[_pygrenade_vx_network.CompartmentOnNeuron]
-
get_config(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int) → _pygrenade_vx_network.UnplacedNeuronCircuit
-
has_double_connections(self: _pygrenade_vx_network.CoordinateSystem, x_max: int) → bool Check for connection both directly and via shared line.
-
has_empty_connections(self: _pygrenade_vx_network.CoordinateSystem, x_max: int) → bool Check for connections with open ends.
-
odd_parity(self: _pygrenade_vx_network.CoordinateSystem) → set[_pygrenade_vx_network.CompartmentOnNeuron] Return set of all compartments that have neuron circuits in columns with odd parity.
-
parity(self: _pygrenade_vx_network.CoordinateSystem, compartment: _pygrenade_vx_network.CompartmentOnNeuron) → tuple[bool, bool] Check if the compartment has neuron circuits of even and odd parity.
-
set(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int, neuron_circuit: _pygrenade_vx_network.NeuronCircuit) → None
-
set_compartment(self: _pygrenade_vx_network.CoordinateSystem, coordinate_x: int, coordinate_y: int, compartment: _pygrenade_vx_network.CompartmentOnNeuron) → None
-
set_config(self: _pygrenade_vx_network.CoordinateSystem, x: int, y: int, neuron_circuit_config_in: _pygrenade_vx_network.UnplacedNeuronCircuit) → None
-
short_circuit(self: _pygrenade_vx_network.CoordinateSystem, x_max: int) → bool Check if any compartments are short circuited.
-