Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
gwinc
pygwinc
Commits
7b0a5366
Commit
7b0a5366
authored
Jan 09, 2021
by
Jameson Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matlab: another fix to the savemat call
parent
20e594f2
Pipeline
#181690
passed with stages
in 3 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gwinc/gwinc_matlab.py
gwinc/gwinc_matlab.py
+1
-1
No files found.
gwinc/gwinc_matlab.py
View file @
7b0a5366
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment