From 0b1f707ab89a8929aef809e3f2de4731b30f38fc Mon Sep 17 00:00:00 2001 From: jupfi Date: Tue, 4 Jun 2024 15:17:21 +0200 Subject: [PATCH] RX Phase Implementation. --- src/quackseq_simulator/simulator_controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/quackseq_simulator/simulator_controller.py b/src/quackseq_simulator/simulator_controller.py index 9a8b96e..3c1bc00 100644 --- a/src/quackseq_simulator/simulator_controller.py +++ b/src/quackseq_simulator/simulator_controller.py @@ -52,7 +52,7 @@ class SimulatorController(SpectrometerController): * 1e6 ) - rx_begin, rx_stop = self.translate_rx_event(sequence) + rx_begin, rx_stop, phase = self.translate_rx_event(sequence) # If we have a RX event, we need to cut the result to the RX event if rx_begin and rx_stop: evidx = np.where((tdx > rx_begin) & (tdx < rx_stop))[0] @@ -71,6 +71,9 @@ class SimulatorController(SpectrometerController): # frequency_shift=self.module.model.if_frequency, ) + if phase: + measurement_data.phase_shift(phase) + return measurement_data def get_sample_from_settings(self) -> Sample: