bluecellulab.circuit.node_id

Identifier for the circuit nodes.

Account for multi-population and the single.

Functions

create_cell_id(cell_id)

Make a CellId from a tuple or an int.

create_cell_ids(cell_ids)

Make a list of CellId from a list of tuple or int.

Classes

CellId(population_name, id)

class bluecellulab.circuit.node_id.CellId(population_name, id)
id: int

Alias for field number 1

population_name: str

Alias for field number 0

bluecellulab.circuit.node_id.create_cell_id(cell_id)[source]

Make a CellId from a tuple or an int.

Parameters:

cell_id (int | tuple[str, int] | CellId)

Return type:

CellId

bluecellulab.circuit.node_id.create_cell_ids(cell_ids)[source]

Make a list of CellId from a list of tuple or int.

Parameters:

cell_ids (list[int | tuple[str, int] | CellId])

Return type:

list[CellId]