Add optional spherical root for NeuroML. (#1464)
* Adds a `neuroml_options` namespace with enum for use with `neuroml::morphology(...)` and `neuroml::cell_morphology(...)`. * Add support for a 'spherical' root segment with option `neuroml_options;:allow_spherical_root`; a zero-length root segment with identical proximal and distal radius will then be converted into an area-equivalent cylinder in the resultant morphology. * Amend `place_pwlin::all_at` so that locations on a zero-length segment with different radii at the endpoint will give an mpoint for either end. * Add `allow_spherical_root` boolean optional parameter to Python NeuroML morphology methods. * Update docs; C++ unit tests.
Showing
- arbor/morph/place_pwlin.cpp 10 additions, 1 deletionarbor/morph/place_pwlin.cpp
- arborio/include/arborio/neuroml.hpp 14 additions, 2 deletionsarborio/include/arborio/neuroml.hpp
- arborio/neuroml.cpp 4 additions, 4 deletionsarborio/neuroml.cpp
- arborio/nml_parse_morphology.cpp 28 additions, 4 deletionsarborio/nml_parse_morphology.cpp
- arborio/nml_parse_morphology.hpp 1 addition, 1 deletionarborio/nml_parse_morphology.hpp
- doc/cpp/morphology.rst 19 additions, 3 deletionsdoc/cpp/morphology.rst
- doc/python/morphology.rst 8 additions, 2 deletionsdoc/python/morphology.rst
- python/morphology.cpp 38 additions, 33 deletionspython/morphology.cpp
- test/unit/morph_pred.hpp 14 additions, 0 deletionstest/unit/morph_pred.hpp
- test/unit/test_morph_place.cpp 29 additions, 0 deletionstest/unit/test_morph_place.cpp
- test/unit/test_nml_morphology.cpp 159 additions, 0 deletionstest/unit/test_nml_morphology.cpp
Please register or sign in to comment