Py feature context (#744)
+ Included conversion from `pybind11::object()` to `arb::util::optional` for `arbor.proc_allocation().gpu_id` and exception handling for `arbor.context(mpi=comm)`. + cleaned-up `test_event_generator.py` + for discussion: How do we want to handle the strings? Include them in appropriate `.cpp` or collect them in `strings.c/hpp`?
Showing
- python/context.cpp 123 additions, 33 deletionspython/context.cpp
- python/strings.cpp 1 addition, 14 deletionspython/strings.cpp
- python/strings.hpp 0 additions, 1 deletionpython/strings.hpp
- python/test/unit/test_contexts.py 52 additions, 28 deletionspython/test/unit/test_contexts.py
- python/test/unit/test_event_generators.py 14 additions, 14 deletionspython/test/unit/test_event_generators.py
- python/test/unit_distributed/test_contexts_arbmpi.py 21 additions, 1 deletionpython/test/unit_distributed/test_contexts_arbmpi.py
- python/test/unit_distributed/test_contexts_mpi4py.py 20 additions, 3 deletionspython/test/unit_distributed/test_contexts_mpi4py.py
Please register or sign in to comment