remove not implemented tab "point and shoot"
This commit is contained in:
32
CustomROI.py
32
CustomROI.py
@@ -16,38 +16,6 @@ logger = logging.getLogger(__name__)
|
|||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
|
||||||
class Retangulo(ROI):
|
|
||||||
"""
|
|
||||||
Rectangular ROI subclass with a single scale handle at the top-right corner.
|
|
||||||
|
|
||||||
============== =============================================================
|
|
||||||
**Arguments**
|
|
||||||
pos (length-2 sequence) The position of the ROI origin.
|
|
||||||
See ROI().
|
|
||||||
size (length-2 sequence) The size of the ROI. See ROI().
|
|
||||||
centered (bool) If True, scale handles affect the ROI relative to its
|
|
||||||
center, rather than its origin.
|
|
||||||
sideScalers (bool) If True, extra scale handles are added at the top and
|
|
||||||
right edges.
|
|
||||||
\**args All extra keyword arguments are passed to ROI()
|
|
||||||
============== =============================================================
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, pos, size, centered=False, sideScalers=False, **args):
|
|
||||||
ROI.__init__(self, pos, size, **args)
|
|
||||||
if centered:
|
|
||||||
center = [0.5, 0.5]
|
|
||||||
else:
|
|
||||||
center = [0, 0]
|
|
||||||
|
|
||||||
self.addScaleRotateHandle([0, 0.5], [1, 0.5])
|
|
||||||
self.addScaleHandle([1, 1], center)
|
|
||||||
if sideScalers:
|
|
||||||
self.addScaleHandle([1, 0.5], [center[0], 0.5])
|
|
||||||
self.addScaleHandle([0.5, 1], [0.5, center[1]])
|
|
||||||
|
|
||||||
|
|
||||||
class Grid(ROI):
|
class Grid(ROI):
|
||||||
"""a grid"""
|
"""a grid"""
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,14 @@ class epics_cam(object):
|
|||||||
pv_pic=self.getPv('FPICTURE')
|
pv_pic=self.getPv('FPICTURE')
|
||||||
sz=self._sz
|
sz=self._sz
|
||||||
pic = pv_pic.get(count=sz[0]*sz[1], as_numpy=True).reshape(sz[::-1])
|
pic = pv_pic.get(count=sz[0]*sz[1], as_numpy=True).reshape(sz[::-1])
|
||||||
|
f=np.array(((0, 0, 0, 0, 0),
|
||||||
|
(0, 1, 1, 1, 0),
|
||||||
|
(0, 1, 0, 0, 0),
|
||||||
|
(0, 1, 1, 0, 0),
|
||||||
|
(0, 1, 0, 0, 0),
|
||||||
|
(0, 0, 0, 0, 0),), pic.dtype)
|
||||||
|
pic[0:6, 0:5]=f*255
|
||||||
|
|
||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
_log.warning("failed to fetch image")
|
_log.warning("failed to fetch image")
|
||||||
else:
|
else:
|
||||||
|
|||||||
17
swissmx.py
17
swissmx.py
@@ -70,7 +70,6 @@ TASK_SETUP_CAMERA = "setup_camera"
|
|||||||
TASK_SETUP_ROI = "setup_rois"
|
TASK_SETUP_ROI = "setup_rois"
|
||||||
TASK_SAMPLE_SELECTION = "task_sample_selection"
|
TASK_SAMPLE_SELECTION = "task_sample_selection"
|
||||||
TASK_SCREENING = "screening"
|
TASK_SCREENING = "screening"
|
||||||
TASK_POINT_SHOOT = "point_shoot"
|
|
||||||
TASK_GRID = "grid"
|
TASK_GRID = "grid"
|
||||||
TASK_PRELOCATED = "prelocated"
|
TASK_PRELOCATED = "prelocated"
|
||||||
TASK_HELICAL = "helical"
|
TASK_HELICAL = "helical"
|
||||||
@@ -977,10 +976,10 @@ class Main(QMainWindow, Ui_MainWindow):
|
|||||||
self.ppm_fitter = np.poly1d(bx_coefs)
|
self.ppm_fitter = np.poly1d(bx_coefs)
|
||||||
|
|
||||||
def getFastX(self):
|
def getFastX(self):
|
||||||
return self.tweakers["fast_x"].motor.get_position()
|
return self.tweakers["fast_x"].get_position()
|
||||||
|
|
||||||
def getFastY(self):
|
def getFastY(self):
|
||||||
return self.tweakers["fast_y"].motor.get_position()
|
return self.tweakers["fast_y"].get_position()
|
||||||
|
|
||||||
def zoom_changed_cb(self, value):
|
def zoom_changed_cb(self, value):
|
||||||
self.zoomChanged.emit(value)
|
self.zoomChanged.emit(value)
|
||||||
@@ -1195,8 +1194,6 @@ class Main(QMainWindow, Ui_MainWindow):
|
|||||||
self.append_to_beam_markers(x, y, zoom_level)
|
self.append_to_beam_markers(x, y, zoom_level)
|
||||||
else:
|
else:
|
||||||
_log.warning("click combination not available")
|
_log.warning("click combination not available")
|
||||||
elif task == TASK_POINT_SHOOT:
|
|
||||||
pass
|
|
||||||
elif task == TASK_GRID:
|
elif task == TASK_GRID:
|
||||||
if shft and not (ctrl or alt):
|
if shft and not (ctrl or alt):
|
||||||
self.addGridRequest.emit(fx, fy)
|
self.addGridRequest.emit(fx, fy)
|
||||||
@@ -2506,15 +2503,7 @@ class Main(QMainWindow, Ui_MainWindow):
|
|||||||
self._is_aborted = False
|
self._is_aborted = False
|
||||||
method = self._tabs_daq_methods.currentWidget().accessibleName()
|
method = self._tabs_daq_methods.currentWidget().accessibleName()
|
||||||
|
|
||||||
if task == TASK_POINT_SHOOT:
|
if task == TASK_GRID:
|
||||||
QMessageBox.information("not implemented", "not implemented")
|
|
||||||
self.re_connect_collect_button(
|
|
||||||
callback=self.collect_abort_grid,
|
|
||||||
accessibleName="grid_abort",
|
|
||||||
label="Abort",
|
|
||||||
)
|
|
||||||
|
|
||||||
elif task == TASK_GRID:
|
|
||||||
self.re_connect_collect_button(
|
self.re_connect_collect_button(
|
||||||
callback=self.collect_abort_grid,
|
callback=self.collect_abort_grid,
|
||||||
accessibleName="grid_abort",
|
accessibleName="grid_abort",
|
||||||
|
|||||||
12
swissmx.ui
12
swissmx.ui
@@ -333,16 +333,8 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="_tab_daq_method_screening">
|
|
||||||
<property name="accessibleName">
|
|
||||||
<string>point_and_shoot</string>
|
|
||||||
</property>
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Point && Shoot</string>
|
|
||||||
</attribute>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="_tab_daq_method_grid">
|
<widget class="QWidget" name="_tab_daq_method_grid">
|
||||||
<property name="accessibleName">
|
<property name="accessibleName">
|
||||||
<string>grid</string>
|
<string>grid</string>
|
||||||
@@ -650,7 +642,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1814</width>
|
<width>1814</width>
|
||||||
<height>20</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
|||||||
Reference in New Issue
Block a user