Fixed bug with wrong dimensions when no RX event was set.

This commit is contained in:
jupfi 2024-12-29 09:29:09 +01:00
parent 14d1101591
commit 5b26112aea

View file

@ -71,7 +71,8 @@ class SimulatorController(SpectrometerController):
tdx = tdx[evidx]
result = result[evidx]
# Add empty second dimension to result so it has shape (n_points, 1)
result = np.expand_dims(result, axis=1)
result = np.expand_dims(result, axis=1)
# Measurement name date + module + target frequency + averages + sequence name
name = f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - Simulator - {self.simulator.model.target_frequency / 1e6} MHz - {self.simulator.model.averages} averages - {sequence.name}"