0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix: update_signal typo fixed

This commit is contained in:
wyzula-jan
2023-09-08 16:22:54 +02:00
parent 5e579b5bc4
commit 43f03b5430

View File

@ -21,7 +21,7 @@ from scipy.stats import multivariate_normal
class EigerPlot(QWidget): class EigerPlot(QWidget):
update_signale = pyqtSignal() update_signal = pyqtSignal()
def __init__(self, parent=None): def __init__(self, parent=None):
super().__init__(parent) super().__init__(parent)
@ -69,7 +69,7 @@ class EigerPlot(QWidget):
self.doubleSpinBox_hist_max.valueChanged.connect(self.update_hist) self.doubleSpinBox_hist_max.valueChanged.connect(self.update_hist)
# Signal/Slots # Signal/Slots
self.update_signale.connect(self.on_image_update) self.update_signal.connect(self.on_image_update)
def update_hist(self): def update_hist(self):
self.hist_levels = [ self.hist_levels = [
@ -135,7 +135,7 @@ class EigerPlot(QWidget):
raw_meta, raw_data = receiver.recv_multipart() raw_meta, raw_data = receiver.recv_multipart()
meta = json.loads(raw_meta.decode("utf-8")) meta = json.loads(raw_meta.decode("utf-8"))
self.image = np.frombuffer(raw_data, dtype=meta["type"]).reshape(meta["shape"]) self.image = np.frombuffer(raw_data, dtype=meta["type"]).reshape(meta["shape"])
self.update_signale.emit() self.update_signal.emit()
finally: finally:
receiver.disconnect(live_stream_url) receiver.disconnect(live_stream_url)
@ -166,7 +166,7 @@ class EigerPlot(QWidget):
# Place Gaussian in the first quadrant # Place Gaussian in the first quadrant
self.image[0:50, 0:50] += gaussian_quadrant * 10 self.image[0:50, 0:50] += gaussian_quadrant * 10
self.update_signale.emit() self.update_signal.emit()
time.sleep(0.1) time.sleep(0.1)