diff --git a/pilatus_tools/widgets/widget_pilatus.py b/pilatus_tools/widgets/widget_pilatus.py index 0d460ab..6adb16b 100644 --- a/pilatus_tools/widgets/widget_pilatus.py +++ b/pilatus_tools/widgets/widget_pilatus.py @@ -16,6 +16,7 @@ import time as ttime import pyqtgraph as pg +pg.setConfigOption('leftButtonPan', False) import sys sys.path.append('/home/xf08id/Repos/') @@ -73,8 +74,11 @@ def __init__(self, for i in range(4): self.comboBox_shapetime.addItem(self.gain_menu[i]) - self.pilatus100k_device.cam.image_mode.set(0).wait() - self.pilatus100k_device.cam.trigger_mode.set(0).wait() + # self.pilatus100k_device.cam.image_mode.set(0).wait() + # self.pilatus100k_device.cam.trigger_mode.set(0).wait() + + self.pilatus100k_device.cam.image_mode.put(0) + self.pilatus100k_device.cam.trigger_mode.put(0) @@ -226,14 +230,14 @@ def plot_this(self): _img = self.pilatus100k_device.image.array_data.get() - _img = _img.reshape(195,487) + _img = _img.reshape(195,487) #[:, ::-1] # _img = self.pilatus100k_device.image.array_data.value.reshape(195, 487) ## Dead pixels - _img[158, 11] = 0 - _img[15, 352] = 0 - _img[171, 364] = 0 - _img[171, 365] = 0 + # _img[158, 11] = 0 + # _img[15, 352] = 0 + # _img[171, 364] = 0 + # _img[171, 365] = 0 self.image.setImage(_img) self.image.setLevels([self._min, self._max]) @@ -260,14 +264,6 @@ def read_new_pos_n_size(self, roi_indx): getattr(self.pilatus100k_device, 'roi' + roi_indx).size.x.put(new_size[1]) getattr(self.pilatus100k_device, 'roi' + roi_indx).size.y.put(new_size[0]) - - - - - - - - # self.pilatus100k_device.cam.acquire.subscribe(self.update_image_widget) def update_counts_n_energy(self):