CV policies with unit tests. (#878)
* Add new `cv_policy` class that wraps classes derived from `cv_policy_base`, which in turn provide a facility for producing CV boundaries on morphology trees from a `cable_cell`. * Implement fixed-CVs-per-branch and maximum-CV-length policies, with flags that allow for single-CV oots and for CVs that terminate at fork points or which are centred on fork points. * Expose locset `join` expressions. * Add `empty()` test method on `morphology`. * Expose branch length on `em_morphology` via member function. * Account for the length of a spherical root branch in `em_morphology`. * Test for validity but do not canonicalize locations when thingifying. * Rename `root_sample_has_same_tag_as_child` to `root_sample_tag_differs_from_children` to better reflect sense of test. * Add unit tests for CV policies, branch_length method.
Showing
- arbor/cable_cell_param.cpp 75 additions, 0 deletionsarbor/cable_cell_param.cpp
- arbor/include/arbor/cable_cell_param.hpp 139 additions, 3 deletionsarbor/include/arbor/cable_cell_param.hpp
- arbor/include/arbor/morph/locset.hpp 8 additions, 0 deletionsarbor/include/arbor/morph/locset.hpp
- arbor/include/arbor/morph/morphology.hpp 3 additions, 0 deletionsarbor/include/arbor/morph/morphology.hpp
- arbor/morph/em_morphology.cpp 8 additions, 1 deletionarbor/morph/em_morphology.cpp
- arbor/morph/em_morphology.hpp 15 additions, 0 deletionsarbor/morph/em_morphology.hpp
- arbor/morph/locset.cpp 2 additions, 2 deletionsarbor/morph/locset.cpp
- arbor/morph/morphology.cpp 6 additions, 2 deletionsarbor/morph/morphology.cpp
- test/unit/CMakeLists.txt 1 addition, 0 deletionstest/unit/CMakeLists.txt
- test/unit/test_cv_policy.cpp 235 additions, 0 deletionstest/unit/test_cv_policy.cpp
- test/unit/test_em_morphology.cpp 22 additions, 7 deletionstest/unit/test_em_morphology.cpp
test/unit/test_cv_policy.cpp
0 → 100644
Please register or sign in to comment