RX Phase Implementation.

This commit is contained in:
jupfi 2024-06-04 15:17:21 +02:00
parent 39941d879a
commit 0b1f707ab8

View file

@ -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: