diff --git a/charon_vna/gui.py b/charon_vna/gui.py index aaa6ebc..26433fc 100644 --- a/charon_vna/gui.py +++ b/charon_vna/gui.py @@ -201,13 +201,6 @@ class MainWindow(QMainWindow): menu_calibration = QMenu("&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 window_layout = QVBoxLayout() @@ -301,18 +294,6 @@ class MainWindow(QMainWindow): for plot in self.plots: 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): print(frequency) if frequency is None: