For various project, it is convenient to have a way to assign sub sectiontypes to morphologies, based on a particular point (apical point, or 'axon point'). This is an attempt to provide such a little tool via the SectionType.custom[number] of morphio.
One set the subtypes, then use the provided dict to access specific section via names (trunk, oblique) instead of custom[number], then can unset them to return to original morphology (for example after some manipulations, to be able to save it on disc).
It is a bit of a mix-up between neurom and morphio, I'm open to any suggestions to make this cleaner.
For various project, it is convenient to have a way to assign sub sectiontypes to morphologies, based on a particular point (apical point, or 'axon point'). This is an attempt to provide such a little tool via the SectionType.custom[number] of morphio. One set the subtypes, then use the provided dict to access specific section via names (trunk, oblique) instead of custom[number], then can unset them to return to original morphology (for example after some manipulations, to be able to save it on disc).
It is a bit of a mix-up between neurom and morphio, I'm open to any suggestions to make this cleaner.