Check validity of event_generator targets in recipe (#1438)
* Add a method to `event_generator` that returns all of its targets. * When the simulation is constructed, check the targets of each event generator, and throw an exception if an the `gid` or `lid` is invalid. * Add corresponding unit tests.
Showing
- arbor/arbexcept.cpp 15 additions, 2 deletionsarbor/arbexcept.cpp
- arbor/include/arbor/arbexcept.hpp 12 additions, 0 deletionsarbor/include/arbor/arbexcept.hpp
- arbor/include/arbor/event_generator.hpp 28 additions, 2 deletionsarbor/include/arbor/event_generator.hpp
- arbor/simulation.cpp 16 additions, 1 deletionarbor/simulation.cpp
- python/example/single_cell_stdp.py 3 additions, 0 deletionspython/example/single_cell_stdp.py
- test/unit/test_recipe.cpp 63 additions, 14 deletionstest/unit/test_recipe.cpp
Please register or sign in to comment