Sanitize recipe (#1143)
* Raise an exception if: 1. `recipe.num_souces(gid)` != number of detectors placed on the cell. 2. `recipe.num_targets(gid)` != number of synapses placed on the cell. 3. `recipe.connections_on(gid)` has connections with non-existent source or target gids or lids * Raise better exception for gap junctions * Fix unit test Addresses #681
Showing
- arbor/arbexcept.cpp 42 additions, 0 deletionsarbor/arbexcept.cpp
- arbor/communication/communicator.cpp 20 additions, 3 deletionsarbor/communication/communicator.cpp
- arbor/fvm_lowered_cell_impl.hpp 18 additions, 8 deletionsarbor/fvm_lowered_cell_impl.hpp
- arbor/include/arbor/arbexcept.hpp 48 additions, 0 deletionsarbor/include/arbor/arbexcept.hpp
- arbor/partition_load_balance.cpp 1 addition, 1 deletionarbor/partition_load_balance.cpp
- test/simple_recipes.hpp 3 additions, 1 deletiontest/simple_recipes.hpp
- test/unit/CMakeLists.txt 1 addition, 0 deletionstest/unit/CMakeLists.txt
- test/unit/test_recipe.cpp 293 additions, 0 deletionstest/unit/test_recipe.cpp
Please register or sign in to comment