Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix size check in
Model::setStateIsNonNegative
(#2332)
Previously, the wrong array was checked 🙈: ```python amici_model.setAllStatesNonNegative() amici_model.setStateIsNonNegative([]) amici_model.setAllStatesNonNegative() Traceback (most recent call last): File "<ipython-input-22-d7056e8e4e3f>", line 1, in <module> amici_model.setAllStatesNonNegative() File "python/sdist/amici/amici.py", line 2243, in setAllStatesNonNegative return _amici.ModelPtr_setAllStatesNonNegative(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Dimension of input stateIsNonNegative (0) does not agree with number of state variables (2) ```
- Loading branch information