Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gwinc
pygwinc
Commits
0c81cb1a
Commit
0c81cb1a
authored
6 years ago
by
Jameson Graef Rollins
Browse files
Options
Downloads
Patches
Plain Diff
precomp cleanup
use consistent naming
parent
0399db36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwinc/precomp.py
+6
-7
6 additions, 7 deletions
gwinc/precomp.py
with
6 additions
and
7 deletions
gwinc/precomp.py
+
6
−
7
View file @
0c81cb1a
...
...
@@ -12,14 +12,16 @@ from .noise.coatingthermal import getCoatDopt
from
.
import
util
def
precompIFO
(
F_Hz
,
ifoin
,
PRfixed
=
True
):
def
precompIFO
(
f
,
ifoin
,
PRfixed
=
True
):
"""
Add precomputed data to the IFO model.
To prevent recomputation of these precomputed data, if the
ifo argument contains ifo.gwinc.PRfixed, and this matches
the argument PRfixed, no changes are made.
This function DOES NOT modify IFO. Its return value is a copy of IFO with precomputations filled out.
This function DOES NOT modify IFO. Its return value is a copy of
IFO with precomputations filled out.
"""
ifo
=
copy
.
deepcopy
(
ifoin
)
...
...
@@ -138,7 +140,7 @@ def precompIFO(F_Hz, ifoin, PRfixed=True):
# Suspension
# if the suspension code supports different temps for the stages
fname
=
eval
(
'
suspension.susp{}
'
.
format
(
ifo
.
Suspension
.
Type
))
hForce
,
vForce
,
hTable
,
vTable
=
fname
(
F_Hz
,
ifo
)
hForce
,
vForce
,
hTable
,
vTable
=
fname
(
f
,
ifo
)
try
:
# full TF (conventional)
...
...
@@ -159,11 +161,8 @@ def precompIFO(F_Hz, ifoin, PRfixed=True):
#
# used for converting displacement to strain in all noise calculations
ifo
.
gwinc
.
dhdl_sqr
,
ifo
.
gwinc
.
sinc_sqr
=
dhdl
(
F_Hz
,
ifo
.
Infrastructure
.
Length
)
ifo
.
gwinc
.
dhdl_sqr
,
ifo
.
gwinc
.
sinc_sqr
=
dhdl
(
f
,
ifo
.
Infrastructure
.
Length
)
##############################
# If we are precomputing everything else, might as well simply function call API by sticking in the F_Hz
ifo
.
gwinc
.
F_Hz
=
F_Hz
return
ifo
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment