Modify SWC loaders (#1214)
* Rename `as_segment_tree` to `load_swc_arbor`. * Remove `swc_mode`: `sort_and_validate_swc` now performs the `relaxed` checks by default, `load_swc_arbor` performs the `strict` checks. * Change `load_swc_xxx` to only accept `swc_data` as an argument * Remove default constructor for `swc_data` and enforce validation of SWC records via `sort_and_validate_swc` at construction. * Add fixes for docs and unit tests.
Showing
- arborio/include/arborio/swcio.hpp 18 additions, 31 deletionsarborio/include/arborio/swcio.hpp
- arborio/swcio.cpp 42 additions, 33 deletionsarborio/swcio.cpp
- doc/concepts/morphology.rst 9 additions, 9 deletionsdoc/concepts/morphology.rst
- doc/cpp/cable_cell.rst 9 additions, 7 deletionsdoc/cpp/cable_cell.rst
- doc/python/morphology.rst 1 addition, 1 deletiondoc/python/morphology.rst
- doc/scripts/inputs.py 1 addition, 1 deletiondoc/scripts/inputs.py
- example/single/single.cpp 1 addition, 1 deletionexample/single/single.cpp
- python/morphology.cpp 79 additions, 57 deletionspython/morphology.cpp
- test/ubench/fvm_discretize.cpp 4 additions, 2 deletionstest/ubench/fvm_discretize.cpp
- test/unit/test_morphology.cpp 2 additions, 2 deletionstest/unit/test_morphology.cpp
- test/unit/test_swcio.cpp 96 additions, 71 deletionstest/unit/test_swcio.cpp
Please register or sign in to comment