From 333b81f789fa2279c4dc46b761f760130d94f989 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 27 Sep 2023 13:17:08 +0800 Subject: [PATCH] set_argument_value warning in browser --- artiq/browser/experiments.py | 4 ++++ artiq/frontend/artiq_browser.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/browser/experiments.py b/artiq/browser/experiments.py index c34ea5832..7f74f90bb 100644 --- a/artiq/browser/experiments.py +++ b/artiq/browser/experiments.py @@ -508,5 +508,9 @@ class ExperimentsArea(QtWidgets.QMdiArea): self.open_experiments.append(dock) return dock + def set_argument_value(self, expurl, name, value): + logger.warning("Unable to set argument '%s', dropping change. " + "'set_argument_value' not supported in browser.", name) + def on_dock_closed(self, dock): self.open_experiments.remove(dock) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index 5cb7ef090..751c57d2e 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -81,7 +81,7 @@ class Browser(QtWidgets.QMainWindow): self.files.dataset_changed.connect( self.experiments.dataset_changed) - self.applets = applets.AppletsDock(self, dataset_sub, dataset_ctl, loop=loop) + self.applets = applets.AppletsDock(self, dataset_sub, dataset_ctl, self.experiments, loop=loop) smgr.register(self.applets) atexit_register_coroutine(self.applets.stop, loop=loop)