mirror of
https://github.com/nqrduck/quackseq-simulator.git
synced 2025-01-02 18:08:07 +00:00
RX Phase Implementation.
This commit is contained in:
parent
39941d879a
commit
0b1f707ab8
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue