neurom.core.iter_segments

neurom.core.iter_segments(obj, neurite_filter=None)[source]

Return an iterator to the segments in a collection of neurites

Parameters:
  • obj – neuron, population, neurite, section, or iterable containing neurite objects
  • neurite_filter – optional top level filter on properties of neurite neurite objects

Note

This is a convenience function provideded for generic access to neuron segments. It may have a performance overhead WRT custom-made segment analysis functions that leverage numpy and section-wise iteration.