Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 18, 2023
1 parent dd596d2 commit d054812
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions python/tests/test_swig_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ def test_solvers_are_deepcopyable():
)



def test_model_is_deepcopyable(pysb_example_presimulation_module):
model_module = pysb_example_presimulation_module
for model1 in (
Expand All @@ -499,5 +498,5 @@ def test_model_is_deepcopyable(pysb_example_presimulation_module):
model2 = copy.deepcopy(model1)
assert model1.this != model2.this
assert model1.t0() == model2.t0()
model2.setT0(100 * model2.t0())
assert model1.t0() != model2.t0()
model2.setT0(100 + model2.t0())
assert model1.t0() != model2.t0()
1 change: 1 addition & 0 deletions swig/amici.i
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ nonstandard type conversions.

// typemaps for docstrings
%typemap(doctype) std::unique_ptr< amici::ExpData >::pointer "ExpData";
%typemap(doctype) std::unique_ptr< amici::Model > "ModelPtr";
%typemap(doctype) std::unique_ptr< amici::Solver > "SolverPtr";
%typemap(doctype) std::vector< amici::realtype,std::allocator< amici::realtype > > "DoubleVector";
%typemap(doctype) std::vector< double,std::allocator< double > > "DoubleVector";
Expand Down
1 change: 0 additions & 1 deletion swig/model.i
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,5 @@ def __deepcopy__(self, memo):
%}
};


// Process symbols in header
%include "amici/model.h"

0 comments on commit d054812

Please sign in to comment.