Skip to content

Commit 0354a53

Browse files
committed
Fixes matlab import error
1 parent 34516e5 commit 0354a53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RATapi/utils/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,10 @@ def convert_parameters(
549549
# scipy.io.savemat doesn't do cells properly:
550550
# https://github.com/scipy/scipy/issues/3756
551551
# rather than fiddling we just use matlab
552-
eng = wrappers.start_matlab().result()
552+
eng = wrappers.start_matlab()
553553
if eng is None:
554554
raise ImportError("matlabengine is not installed.")
555+
eng = eng.result()
555556
eng.workspace["problem"] = r1
556557
eng.save(str(filename), "problem", nargout=0)
557558
eng.exit()

0 commit comments

Comments
 (0)