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
de24d3b1
Commit
de24d3b1
authored
4 years ago
by
Kevin Kuns
Browse files
Options
Downloads
Patches
Plain Diff
update sub-budgets to use new precomp
parent
c9eb66d2
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/ifo/noises.py
+49
-25
49 additions, 25 deletions
gwinc/ifo/noises.py
with
49 additions
and
25 deletions
gwinc/ifo/noises.py
+
49
−
25
View file @
de24d3b1
...
...
@@ -138,6 +138,12 @@ def precomp_cavity(f, ifo):
ifo
.
gwinc
.
wBeam_ITM
=
wBeam_ITM
ifo
.
gwinc
.
wBeam_ETM
=
wBeam_ETM
def
precomp_quantum
(
f
,
ifo
):
noise_dict
=
noise
.
quantum
.
shotrad
(
f
,
ifo
)
ifo
.
gwinc
.
quantum
=
noise_dict
##################################################
############################################################
...
...
@@ -199,8 +205,6 @@ class QuantumVacuum(nb.Noise):
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
total
=
np
.
zeros_like
(
noise_dict
[
'
arm
'
])
for
nn
in
noise_dict
.
values
():
...
...
@@ -217,11 +221,14 @@ class QuantumVacuumAS(nb.Noise):
color
=
'
xkcd:emerald green
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
return
noise_dict
[
'
asvac
'
]
return
self
.
ifo
.
gwinc
.
quantum
[
'
asvac
'
]
class
QuantumVacuumArm
(
nb
.
Noise
):
...
...
@@ -233,11 +240,14 @@ class QuantumVacuumArm(nb.Noise):
color
=
'
xkcd:orange brown
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
return
noise_dict
[
'
arm
'
]
return
self
.
ifo
.
gwinc
.
quantum
[
'
arm
'
]
class
QuantumVacuumSRC
(
nb
.
Noise
):
...
...
@@ -249,11 +259,15 @@ class QuantumVacuumSRC(nb.Noise):
color
=
'
xkcd:cerulean
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
return
noise_dict
[
'
src
'
]
return
self
.
ifo
.
gwinc
.
quantum
[
'
src
'
]
class
QuantumVacuumFilterCavity
(
nb
.
Noise
):
...
...
@@ -265,11 +279,15 @@ class QuantumVacuumFilterCavity(nb.Noise):
color
=
'
xkcd:goldenrod
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
# FC0 are the noises from the filter cavity losses and F0_unsqzd_back
noise_dict
=
self
.
ifo
.
gwinc
.
quantum
# FC0 are the noises from the filter cavity losses and FC0_unsqzd_back
# are noises from the unsqueezed vacuum injected at the back mirror
# Right now there are at most one filter cavity in all the models;
# if there were two, there would also be FC1 and FC1_unsqzd_back, etc.
...
...
@@ -286,11 +304,14 @@ class QuantumVacuumInjection(nb.Noise):
color
=
'
xkcd:fuchsia
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
return
noise_dict
[
'
injection
'
]
return
self
.
ifo
.
gwinc
.
quantum
[
'
injection
'
]
class
QuantumVacuumReadout
(
nb
.
Noise
):
...
...
@@ -302,11 +323,14 @@ class QuantumVacuumReadout(nb.Noise):
color
=
'
xkcd:mahogany
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
precomp_mirror
(
self
.
freq
,
self
.
ifo
)
precomp_gwinc
(
self
.
freq
,
self
.
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
self
.
freq
,
self
.
ifo
)
return
noise_dict
[
'
pd
'
]
return
self
.
ifo
.
gwinc
.
quantum
[
'
pd
'
]
class
StandardQuantumLimit
(
nb
.
Noise
):
...
...
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