mirror of
https://github.com/nqrduck/quackseq-limenqr.git
synced 2025-01-04 17:38:07 +00:00
Fixed typos.
This commit is contained in:
parent
f2f83a4b5e
commit
d1714ed55c
2 changed files with 9 additions and 8 deletions
|
@ -60,12 +60,12 @@ class LimeNQRController(SpectrometerController):
|
|||
logger.debug(f"Last tdx value: {measurement_data.tdx[-1]}")
|
||||
|
||||
if dwell_time:
|
||||
n_data_points = int(measurement_data.tdx[-1] / dwell_time)
|
||||
n_data_points = int(measurement_data.tdx[-1][-1] / dwell_time)
|
||||
logger.debug("Resampling to %s data points", n_data_points)
|
||||
tdx = np.linspace(
|
||||
0, measurement_data.tdx[-1], n_data_points, endpoint=False
|
||||
0, measurement_data.tdx[-1][-1], n_data_points, endpoint=False
|
||||
)
|
||||
tdy = resample(measurement_data.tdy, n_data_points)
|
||||
tdy = resample(measurement_data.tdy[-1], n_data_points)
|
||||
name = measurement_data.name
|
||||
measurement_data = Measurement(
|
||||
name,
|
||||
|
@ -578,6 +578,7 @@ class LimeNQRController(SpectrometerController):
|
|||
events = sequence.events
|
||||
|
||||
rx_event = self.find_rx_event(events)
|
||||
logger.debug("Found RX event: %s", rx_event)
|
||||
if not rx_event:
|
||||
return None, None
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ class TestQuackSequence(unittest.TestCase):
|
|||
seq.set_tx_amplitude(loopback, 100)
|
||||
seq.set_tx_phase(loopback, 0)
|
||||
|
||||
rect = SincFunction()
|
||||
seq.set_tx_shape(loopback, rect)
|
||||
sinc = SincFunction()
|
||||
seq.set_tx_shape(loopback, sinc)
|
||||
|
||||
seq.set_rx(loopback, True)
|
||||
|
||||
|
@ -45,9 +45,9 @@ class TestQuackSequence(unittest.TestCase):
|
|||
|
||||
result = lime.run_sequence(seq)
|
||||
|
||||
plt.plot(result.tdx, result.tdy.imag)
|
||||
plt.plot(result.tdx, result.tdy.real)
|
||||
plt.plot(result.tdx, np.abs(result.tdy))
|
||||
plt.plot(result.tdx[-1], result.tdy[-1].imag)
|
||||
plt.plot(result.tdx[-1], result.tdy[-1].real)
|
||||
plt.plot(result.tdx[-1], np.abs(result.tdy[-1]))
|
||||
plt.show()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue