From b6a83904b5bc67c57d3f5eb57d0431e52a46667e Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 12 Jul 2023 12:03:54 +0800 Subject: [PATCH] image: refactor data_changed --- artiq/applets/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/applets/image.py b/artiq/applets/image.py index 7a192bcda..36af01cab 100755 --- a/artiq/applets/image.py +++ b/artiq/applets/image.py @@ -11,9 +11,9 @@ class Image(pyqtgraph.ImageView): pyqtgraph.ImageView.__init__(self) self.args = args - def data_changed(self, data, mods): + def data_changed(self, value, metadata, persist, mods): try: - img = data[self.args.img][1] + img = value[self.args.img] except KeyError: return self.setImage(img)