Python spikes (#788)
Support for recording spikes generated by a simulation in the Python wrapper * Implement a `spike_recorder` that holds a shared pointer to a `std::vector` of spikes, and a callback for the `arb::simulation` spike recording API. * Add `python/example/ring.py` that creates a ring network, then records and prints spikes. * Some fixes to get the full `recipe` -> `domain_decomposition` -> `simulation` -> `spikes` workflow to work * always use default `global_parameters`: user customization of global parameters for cable cells can wait until the ion species interface is finished. * change the Python recipe interface for `recipe::connections_on` to use `pybind11::objects` because of shim. * Some small improvements to error and help messages. Fixes #764
Showing
- .ycm_extra_conf.py 2 additions, 0 deletions.ycm_extra_conf.py
- arbor/arbexcept.cpp 1 addition, 1 deletionarbor/arbexcept.cpp
- python/CMakeLists.txt 2 additions, 1 deletionpython/CMakeLists.txt
- python/cells.cpp 2 additions, 1 deletionpython/cells.cpp
- python/example/ring.py 65 additions, 0 deletionspython/example/ring.py
- python/identifiers.cpp 1 addition, 1 deletionpython/identifiers.cpp
- python/pyarb.cpp 2 additions, 0 deletionspython/pyarb.cpp
- python/recipe.cpp 20 additions, 49 deletionspython/recipe.cpp
- python/recipe.hpp 22 additions, 28 deletionspython/recipe.hpp
- python/simulation.cpp 6 additions, 7 deletionspython/simulation.cpp
- python/spikes.cpp 92 additions, 0 deletionspython/spikes.cpp
Please register or sign in to comment