Commit b1bf44c
authored
Fix
Fixes recent test failures probably related to the recent swig-4.4.1:
```
> testmodel.setFixedParameters(amici.DoubleVector(fp))
test/petab/test_amici_predictor.py:131:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <amici.amici.ModelPtr; proxy of <Swig Object of type 'std::unique_ptr< amici::Model > *' at 0x7f719c1d4970> >
k = <Swig Object of type 'std::vector< double > *' at 0x7f719e83ad30; array([2., 0.]) >
def setFixedParameters(self, k: Sequence[float]):
"""
Set values for constants.
:param k: Vector of fixed parameters
"""
> return _amici.ModelPtr_setFixedParameters(self, k)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E TypeError: in method 'ModelPtr_setFixedParameters', argument 2 of type 'std::vector< amici::realtype,std::allocator< amici::realtype > > const &'
```test/petab/test_amici_predictor.py failures (#1672)1 parent 8ab2b23 commit b1bf44c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments