Use fit result when showing projection

This commit is contained in:
linarphy 2024-06-19 12:25:33 +02:00
parent 8c0694bf5e
commit 3bbcc3bbed
No known key found for this signature in database
GPG key ID: E61920135EFF2295
2 changed files with 9 additions and 4 deletions

View file

@ -2,7 +2,7 @@
from gettext import install
from backscattering_analyzer.display import show_projection # type: ignore[reportMissingTypeStubs]
from backscattering_analyzer.experiment import Experiment # type: ignore[reportMissingTypeStubs]
from backscattering_analyzer.experiment import AcquisitionType, Experiment # type: ignore[reportMissingTypeStubs]
from logging import basicConfig, getLogger
from rich.console import Console
from rich.theme import Theme
@ -168,6 +168,12 @@ else:
start_frequency=start_frequency,
end_frequency=end_frequency,
)
experiment.projection_reference = experiment.compute_projection(
AcquisitionType.REFERENCE
)
experiment.projection_excited = experiment.compute_projection(
AcquisitionType.EXCITED
)
except AttributeError:
pass

View file

@ -8,7 +8,6 @@
[benches.SDB1.calib]
bench = 1.15
mirror = 1.15
[benches.SDB2]
scatter_factor = [4.1e-13, 0]
[benches.SDB2.calib]
@ -32,8 +31,8 @@
[benches.SWEB]
scatter_factor = [1.3e-9, 0]
[benches.SWEB.calib]
bench = 0.98
mirror = 0.98
bench = -0.97
mirror = 0.97
[dates]
[dates.2023_03_24]
laser = 23