remove simulation
All checks were successful
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 18s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped

This commit is contained in:
Brendan Haines 2025-01-16 22:12:31 -07:00
parent f1f6c0d45b
commit 26682f1741

View File

@ -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: