Retrieve probe metadata from simulator object. (#1101)
* Add `get_probe_metadata` method to `simulator` that forwards probe metadata queries to appropriate cell group, via new interface method in cell group base class. * Replace `gid_to_local_` map in simulator implementation with a map that takes gid to local cell index _and_ local cell group index. * Move scheduler association map mutex into the cell group where it is being used (i.e. `mc_cell_group`). * Add generic (`visit`-able) interface to specifc fvm-probe types for accessing metadata via `any_ptr`. * Implement (override) `get_probe_metadata` method for `mc_cell_group`. * Use new cv policy API for LFP example discretization. * Use new probe metadata API to simplify LFP example sampler callback. * Add `on_components` locset expression that gives points a relative distance from the head of each component of a region. * Simplify implementation of thingification of `ls::boundary`. Fixes #1079
Showing
- arbor/cell_group.hpp 7 additions, 0 deletionsarbor/cell_group.hpp
- arbor/fvm_lowered_cell.hpp 22 additions, 0 deletionsarbor/fvm_lowered_cell.hpp
- arbor/include/arbor/morph/locset.hpp 5 additions, 0 deletionsarbor/include/arbor/morph/locset.hpp
- arbor/include/arbor/morph/region.hpp 2 additions, 2 deletionsarbor/include/arbor/morph/region.hpp
- arbor/include/arbor/simulation.hpp 4 additions, 0 deletionsarbor/include/arbor/simulation.hpp
- arbor/mc_cell_group.cpp 65 additions, 40 deletionsarbor/mc_cell_group.cpp
- arbor/mc_cell_group.hpp 6 additions, 0 deletionsarbor/mc_cell_group.hpp
- arbor/morph/locset.cpp 91 additions, 12 deletionsarbor/morph/locset.cpp
- arbor/sampler_map.hpp 4 additions, 41 deletionsarbor/sampler_map.hpp
- arbor/simulation.cpp 26 additions, 5 deletionsarbor/simulation.cpp
- example/lfp/lfp.cpp 18 additions, 37 deletionsexample/lfp/lfp.cpp
- test/unit/test_fvm_lowered.cpp 0 additions, 1 deletiontest/unit/test_fvm_lowered.cpp
- test/unit/test_kinetic_linear.cpp 0 additions, 1 deletiontest/unit/test_kinetic_linear.cpp
- test/unit/test_morph_expr.cpp 17 additions, 2 deletionstest/unit/test_morph_expr.cpp
- test/unit/test_probe.cpp 55 additions, 0 deletionstest/unit/test_probe.cpp
Please register or sign in to comment