Python feature probes and samples (#872)
Adds * to `recipe.cpp`: `num_probes` and `get_probe` with helper function `cable_probe(kind, id, location)` * `sample.cpp`: `sample` type with attributes `time` and `value`; a `sampler` with `samples()` and `clear()` and helper functions `attach_sampler(sim, dt)` for adding all probes as well as `attach_sampler(sim, dt, probe_id)` for adding one probe * `morphology.cpp`: `location` as `arb::mlocation` with `branch` and `position` * corresponding docs and example * update to new cable cell semantics in c++ validation test fixes #762
Showing
- arbor/include/arbor/morph/primitives.hpp 2 additions, 2 deletionsarbor/include/arbor/morph/primitives.hpp
- doc/py_common.rst 16 additions, 0 deletionsdoc/py_common.rst
- doc/py_recipe.rst 41 additions, 0 deletionsdoc/py_recipe.rst
- doc/py_simulation.rst 100 additions, 0 deletionsdoc/py_simulation.rst
- python/CMakeLists.txt 2 additions, 0 deletionspython/CMakeLists.txt
- python/example/ring.py 39 additions, 6 deletionspython/example/ring.py
- python/morphology.cpp 33 additions, 0 deletionspython/morphology.cpp
- python/pyarb.cpp 4 additions, 0 deletionspython/pyarb.cpp
- python/recipe.cpp 35 additions, 2 deletionspython/recipe.cpp
- python/recipe.hpp 23 additions, 8 deletionspython/recipe.hpp
- python/sampling.cpp 157 additions, 0 deletionspython/sampling.cpp
- python/simulation.cpp 3 additions, 0 deletionspython/simulation.cpp
- test/validation/validate_kinetic.cpp 1 addition, 1 deletiontest/validation/validate_kinetic.cpp
- test/validation/validate_synapses.cpp 1 addition, 1 deletiontest/validation/validate_synapses.cpp
Please register or sign in to comment