Skip to content

Commit

Permalink
leftbuttonpan is set to False and changed "SET" method to "PUT"
Browse files Browse the repository at this point in the history
  • Loading branch information
aakhiltayal authored and Eli Stavitski committed Mar 12, 2024
1 parent 30041c5 commit 903b92b
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions pilatus_tools/widgets/widget_pilatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import time as ttime

import pyqtgraph as pg
pg.setConfigOption('leftButtonPan', False)

import sys
sys.path.append('/home/xf08id/Repos/')
Expand Down Expand Up @@ -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)



Expand Down Expand Up @@ -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])
Expand All @@ -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):
Expand Down

0 comments on commit 903b92b

Please sign in to comment.