morph_tool.spatial¶
Module for spatial related functions.
Functions
|
Find section and segment that matches the point. |
- morph_tool.spatial.point_to_section_segment(neuron, point, rtol=1e-05, atol=1e-08)¶
Find section and segment that matches the point.
Only the first point found with the exact same coordinates as the point argument is considered
- Parameters:
neuron (morphio.Morphology) – neuron object
point (point) – value of the point to find in the h5 file
rtol (floats) – precision of np.isclose
atol (floats) – precision of np.isclose
- Returns:
(NeuroM/MorphIO section ID, point ID) of the point the matches the input coordinates. Since NeuroM v2, section ids of NeuroM and MorphIO are the same excluding soma.
- Return type:
Tuple