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
|
* 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 we have a RX event, we need to cut the result to the RX event
|
||||||
if rx_begin and rx_stop:
|
if rx_begin and rx_stop:
|
||||||
evidx = np.where((tdx > rx_begin) & (tdx < rx_stop))[0]
|
evidx = np.where((tdx > rx_begin) & (tdx < rx_stop))[0]
|
||||||
|
@ -71,6 +71,9 @@ class SimulatorController(SpectrometerController):
|
||||||
# frequency_shift=self.module.model.if_frequency,
|
# frequency_shift=self.module.model.if_frequency,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if phase:
|
||||||
|
measurement_data.phase_shift(phase)
|
||||||
|
|
||||||
return measurement_data
|
return measurement_data
|
||||||
|
|
||||||
def get_sample_from_settings(self) -> Sample:
|
def get_sample_from_settings(self) -> Sample:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue