Skip to content
Snippets Groups Projects
Commit 7b0a5366 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

matlab: another fix to the savemat call

parent 20e594f2
No related branches found
No related tags found
No related merge requests found
Pipeline #181690 passed
......@@ -77,7 +77,7 @@ class Matlab:
# similar stupidity prevents this (this time recarrays in the dict):
#matlab.workspace['ifo'] = ifo.to_dict(array=True)
with tempfile.NamedTemporaryFile(suffix='.mat') as f:
scipy.io.savemat(f, struct.to_dict(array=True))
scipy.io.savemat(f.name, struct.to_dict(array=True))
MATLAB_ENGINE.eval("{} = load('{}');".format(var, f.name), nargout=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment