Commit 7b0a5366 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

matlab: another fix to the savemat call

parent 20e594f2
Pipeline #181690 passed with stages
in 3 minutes and 3 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment