From fe0f6d8a2c0d71bd7c7be8e559eef620e6f308d8 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 12 Jul 2023 11:34:55 +0800 Subject: [PATCH] simple: refactor SimpleApplet data_changed signature --- artiq/applets/simple.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/artiq/applets/simple.py b/artiq/applets/simple.py index c04abeb87..eb03766dc 100644 --- a/artiq/applets/simple.py +++ b/artiq/applets/simple.py @@ -270,7 +270,12 @@ class SimpleApplet: return False def emit_data_changed(self, data, mod_buffer): - self.main_widget.data_changed(data, mod_buffer) + persist = dict() + value = dict() + metadata = dict() + for k, d in data.items(): + persist[k], value[k], metadata[k] = d + self.main_widget.data_changed(value, metadata, persist, mod_buffer) def flush_mod_buffer(self): self.emit_data_changed(self.data, self.mod_buffer)