Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Apr 16, 2024
1 parent b1de5cd commit 1c0d719
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion swig/edata.i
Original file line number Diff line number Diff line change
Expand Up @@ -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:])
%}

Expand Down

0 comments on commit 1c0d719

Please sign in to comment.