Skip to content
Snippets Groups Projects
Commit 929d5922 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

make deepcopy of ifo object for matlab processing

parent 71019887
No related branches found
No related tags found
No related merge requests found
import os
import copy
import tempfile
import scipy.io
import numpy as np
......@@ -143,7 +144,7 @@ def _rename_noises(d):
return nd
def gwinc_matlab(f, ifo, plot=False):
def gwinc_matlab(f, ifoin, plot=False):
"""Execute gwinc in MATLAB with the specified ifo model.
This uses the python matlab.engine (see Matlab class) to calculate
......@@ -157,11 +158,12 @@ def gwinc_matlab(f, ifo, plot=False):
the noise budget.
"""
matlab = Matlab()
ifo = copy.deepcopy(ifoin)
# add Constants attribute to ifo structure
ifo_matlab_transform(ifo)
matlab = Matlab()
matlab.load_array('f', f)
matlab.load_struct('ifo', ifo)
......
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