From 08d7501a26c1786a476174bed9d7087683108c65 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 22 Jul 2025 14:02:58 +0200 Subject: [PATCH] Swig-ignore some unnecessary types and add `Model.create_solver` as a more pythonic alias to `getSolver`. --- swig/amici.i | 3 +++ swig/model.i | 2 ++ 2 files changed, 5 insertions(+) diff --git a/swig/amici.i b/swig/amici.i index 48cf5e0883..67d4db4f2d 100644 --- a/swig/amici.i +++ b/swig/amici.i @@ -164,6 +164,9 @@ wrap_unique_ptr(ExpDataPtr, amici::ExpData) %ignore amici::backtraceString; %ignore amici::Logger; %ignore amici::SimulationState; +%ignore amici::BLASLayout; +%ignore amici::SolutionState; +%ignore amici::ModelQuantity; // Include before any other header which uses enums defined there %include "amici/defines.h" diff --git a/swig/model.i b/swig/model.i index eb0ad4d7a2..e6700afa34 100644 --- a/swig/model.i +++ b/swig/model.i @@ -99,6 +99,8 @@ using namespace amici; %newobject amici::Model::clone; +%rename(create_solver) amici::Model::getSolver; + %extend amici::Model { %pythoncode %{ def __deepcopy__(self, memo):