Skip to content

Commit b1bf44c

Browse files
authored
Fix test/petab/test_amici_predictor.py failures (#1672)
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 &' ```
1 parent 8ab2b23 commit b1bf44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/petab/test_amici_predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def edata_objects(conversion_reaction_model):
128128
]
129129
# create rdatas and edatas from those
130130
for fp in fixedParameters:
131-
testmodel.setFixedParameters(amici.DoubleVector(fp))
131+
testmodel.setFixedParameters(fp)
132132
rdata = amici.runAmiciSimulation(testmodel, solver)
133133
rdatas.append(rdata)
134134
edatas.append(amici.ExpData(rdata, 1.0, 0))

0 commit comments

Comments
 (0)