From 1c0d719309e472e9554c57b3e03e3e6a372137b3 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 16 Apr 2024 14:54:51 +0200 Subject: [PATCH] .. --- swig/edata.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swig/edata.i b/swig/edata.i index 949795b1d2..0a8a01e3c9 100644 --- a/swig/edata.i +++ b/swig/edata.i @@ -20,7 +20,9 @@ using namespace amici; from amici.numpy import ReturnDataView # Get the raw pointer if necessary - if isinstance(args[0], (ExpData, ExpDataPtr, ReturnDataView, Model, ModelPtr)): + if isinstance(args[0], (ExpData, ExpDataPtr, Model, ModelPtr)): + args = (_get_ptr(args[0]), *args[1:]) + elif isinstance(args[0], ReturnDataView): args = (_get_ptr(args[0]["ptr"]), *args[1:]) %}