Skip to content
Snippets Groups Projects
Commit e673aa0f authored by Kevin Kuns's avatar Kevin Kuns
Browse files

fix typo in readme: "calc() -> calc_trace()"

parent 890ce2e1
No related branches found
No related tags found
No related merge requests found
......@@ -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()
```
......
......@@ -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_noise() on sub-budgets don't apply strain calibration")
"Testing that run() and calc_trace() 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_trace')
ax.loglog(F_Hz, traces3.asd, ls='-.', label='calc_noise / $L_\mathrm{arm}$')
ax.loglog(F_Hz, traces2.asd, ls='--', label='calc_noise')
ax.loglog(F_Hz, traces3.asd, ls='-.', label='calc_trace / $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_noise / $(\mathrm{d}h/\mathrm{d}L_\mathrm{arm})$')
label='calc_trace / $(\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)
......
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