Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
pygwinc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gwinc
pygwinc
Commits
929d5922
Commit
929d5922
authored
May 23, 2018
by
Jameson Graef Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make deepcopy of ifo object for matlab processing
parent
71019887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gwinc/gwinc_matlab.py
gwinc/gwinc_matlab.py
+5
-3
No files found.
gwinc/gwinc_matlab.py
View file @
929d5922
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
,
ifo
in
,
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
)
...
...
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