remove simulation
This commit is contained in:
parent
f1f6c0d45b
commit
26682f1741
|
@ -201,13 +201,6 @@ class MainWindow(QMainWindow):
|
||||||
menu_calibration = QMenu("&Calibration")
|
menu_calibration = QMenu("&Calibration")
|
||||||
menubar.addMenu(menu_calibration)
|
menubar.addMenu(menu_calibration)
|
||||||
|
|
||||||
menu_simulation = QMenu("Si&mulation")
|
|
||||||
menubar.addMenu(menu_simulation)
|
|
||||||
action_generate_data = QAction("&Generate data", self)
|
|
||||||
menu_file.addAction(action_generate_data)
|
|
||||||
action_generate_data.triggered.connect(self.generate_sim_data)
|
|
||||||
action_generate_data.setShortcut(QKeySequence("Ctrl+G"))
|
|
||||||
|
|
||||||
# Content
|
# Content
|
||||||
window_layout = QVBoxLayout()
|
window_layout = QVBoxLayout()
|
||||||
|
|
||||||
|
@ -301,18 +294,6 @@ class MainWindow(QMainWindow):
|
||||||
for plot in self.plots:
|
for plot in self.plots:
|
||||||
plot.update_plot(data)
|
plot.update_plot(data)
|
||||||
|
|
||||||
def generate_sim_data(self) -> None:
|
|
||||||
coords = {"frequency": self._frequency, "m": [1], "n": [1]}
|
|
||||||
shape = tuple(len(v) for v in coords.values())
|
|
||||||
data = xr.DataArray(
|
|
||||||
((-1 + 2 * np.random.rand(*shape)) + 1j * (-1 + 2 * np.random.rand(*shape))) / np.sqrt(2),
|
|
||||||
dims=list(coords.keys()),
|
|
||||||
coords=coords,
|
|
||||||
)
|
|
||||||
|
|
||||||
for plot in self.plots:
|
|
||||||
plot.update_plot(data)
|
|
||||||
|
|
||||||
def set_frequency(self, *, frequency: npt.ArrayLike | None = None):
|
def set_frequency(self, *, frequency: npt.ArrayLike | None = None):
|
||||||
print(frequency)
|
print(frequency)
|
||||||
if frequency is None:
|
if frequency is None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user