add app_utils for motion_assert, contextMenu og GraphItem, further fixes
This commit is contained in:
@@ -10,7 +10,7 @@ from PyQt5.uic import loadUiType
|
||||
from epics import Motor
|
||||
from epics.ca import pend_event
|
||||
|
||||
from app_utils import DeltatauMotorStatus, assert_motor_positions
|
||||
from app_utils import assert_motor_positions
|
||||
|
||||
Ui_MotorTweak, QWidget = loadUiType('epics_widgets/MotorTweak.ui')
|
||||
SPMG_STOP = 0
|
||||
@@ -138,12 +138,6 @@ class MotorTweak(QWidget, Ui_MotorTweak):
|
||||
self._val=v=m.get('VAL')
|
||||
return v
|
||||
|
||||
def is_homed(self):
|
||||
m=self._motor
|
||||
m.refresh()
|
||||
status = DeltatauMotorStatus(m.motor_status)
|
||||
return bool(DeltatauMotorStatus.MOTOR_HAS_BEEN_HOMED & status)
|
||||
|
||||
def move_abs(self, drive=None, wait=False, assert_position=False):
|
||||
if drive is None:
|
||||
drive = float(self._drive_val.text())
|
||||
|
||||
Reference in New Issue
Block a user