neuralib.morpho.swc.SwcNode
- class neuralib.morpho.swc.SwcNode[source]
Bases:
NamedTupleSwcNode(n, identifier, x, y, z, r, parent)
- n: int
node number
- identifier: int
See IDENTIFIER_DICT
- x: float
position x
- y: float
position y
- z: float
position z
- r: float
radius
- parent: int
parent connectivity
- property identifier_name: str
- property point: ndarray
- property is_undefined: bool
- property is_soma: bool
- property is_axon: bool
- property is_basal_dendrite: bool
- property is_apical_dendrite: bool
- property is_dendrite: bool
- property is_custom: bool
- static __new__(_cls, n, identifier, x, y, z, r, parent)
Create new instance of SwcNode(n, identifier, x, y, z, r, parent)
- Parameters:
n (int)
identifier (int)
x (float)
y (float)
z (float)
r (float)
parent (int)
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.