forked from M-Labs/artiq
1
0
Fork 0

image: refactor data_changed

This commit is contained in:
Simon Renblad 2023-07-12 12:03:54 +08:00 committed by Sébastien Bourdeauducq
parent 25959d0cd6
commit b6a83904b5
1 changed files with 2 additions and 2 deletions

View File

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