From 0b88fd804256f5f5978f73c07491e004ab30404f Mon Sep 17 00:00:00 2001 From: jupfi Date: Thu, 27 Jul 2023 18:46:00 +0200 Subject: [PATCH] Updated pulse shape resolution --- src/nqrduck_spectrometer/pulseparameters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nqrduck_spectrometer/pulseparameters.py b/src/nqrduck_spectrometer/pulseparameters.py index 662c456..0698156 100644 --- a/src/nqrduck_spectrometer/pulseparameters.py +++ b/src/nqrduck_spectrometer/pulseparameters.py @@ -21,7 +21,7 @@ class Function: def __init__(self, expr) -> None: self.parameters = [] self.expr = expr - self.resolution = 16/30.72e6 + self.resolution = 1/30.72e6 self.start_x = -1 self.end_x = 1 @@ -69,7 +69,7 @@ class Function: def time_domain_plot(self, pulse_length: float) -> MplWidget: mpl_widget = MplWidget() td = self.get_time_points(pulse_length) - mpl_widget.canvas.ax.plot(td, self.evaluate(pulse_length)) + mpl_widget.canvas.ax.plot(td, abs(self.evaluate(pulse_length))) mpl_widget.canvas.ax.set_xlabel("Time in s") mpl_widget.canvas.ax.set_ylabel("Magnitude") return mpl_widget