Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Evan Hall
pygwinc
Commits
e673aa0f
Commit
e673aa0f
authored
3 years ago
by
Kevin Kuns
Browse files
Options
Downloads
Patches
Plain Diff
fix typo in readme: "calc() -> calc_trace()"
parent
890ce2e1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
test/budgets/test_budgets.py
+4
-4
4 additions, 4 deletions
test/budgets/test_budgets.py
with
6 additions
and
6 deletions
README.md
+
2
−
2
View file @
e673aa0f
...
...
@@ -450,9 +450,9 @@ data = budget.calc_noise('QuantumVacuum')
You can also calculate a noise at it's source, without applying any
calibrations, by using the Budget
`__getitem__`
interface to extract
the specific Noise BudgetItem for the noise you're interested in, and
running it's
`calc()`
method directly:
running it's
`calc
_trace
()`
method directly:
```
python
data
=
budget
[
'
QuantumVacuum
'
].
calc
()
data
=
budget
[
'
QuantumVacuum
'
].
calc
_trace
()
```
...
...
This diff is collapsed.
Click to expand it.
test/budgets/test_budgets.py
+
4
−
4
View file @
e673aa0f
...
...
@@ -81,7 +81,7 @@ def test_budget_run_calc(tpath_join, pprint, compare_noise):
compare_noise
(
traces1
.
QuantumVacuum
,
traces2
)
compare_noise
(
traces1
.
QuantumVacuum
.
QuantumVacuumAS
,
traces2
.
QuantumVacuumAS
)
pprint
(
"
Testing that run() and calc_
nois
e() on sub-budgets don
'
t apply strain calibration
"
)
"
Testing that run() and calc_
trac
e() on sub-budgets don
'
t apply strain calibration
"
)
compare_noise
(
traces3
,
traces6
)
def
update_total_psd
(
traces
):
...
...
@@ -97,8 +97,8 @@ def test_budget_run_calc(tpath_join, pprint, compare_noise):
fig
,
ax
=
plt
.
subplots
()
ax
.
loglog
(
F_Hz
,
traces1
.
QuantumVacuum
.
asd
,
label
=
'
run
'
)
ax
.
loglog
(
F_Hz
,
traces2
.
asd
,
ls
=
'
--
'
,
label
=
'
calc_
trac
e
'
)
ax
.
loglog
(
F_Hz
,
traces3
.
asd
,
ls
=
'
-.
'
,
label
=
'
calc_
nois
e / $L_\mathrm{arm}$
'
)
ax
.
loglog
(
F_Hz
,
traces2
.
asd
,
ls
=
'
--
'
,
label
=
'
calc_
nois
e
'
)
ax
.
loglog
(
F_Hz
,
traces3
.
asd
,
ls
=
'
-.
'
,
label
=
'
calc_
trac
e / $L_\mathrm{arm}$
'
)
# convert displacement noise into strain
for
trace
in
traces3
:
...
...
@@ -106,7 +106,7 @@ def test_budget_run_calc(tpath_join, pprint, compare_noise):
update_total_psd
(
traces3
)
ax
.
loglog
(
F_Hz
,
traces3
.
asd
,
ls
=
'
:
'
,
label
=
'
calc_
nois
e / $(\mathrm{d}h/\mathrm{d}L_\mathrm{arm})$
'
)
label
=
'
calc_
trac
e / $(\mathrm{d}h/\mathrm{d}L_\mathrm{arm})$
'
)
ax
.
set_xlim
(
F_Hz
[
0
],
F_Hz
[
-
1
])
ax
.
grid
(
True
,
which
=
'
major
'
,
alpha
=
0.5
)
...
...
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