From f9f9ed5e23d7478c5661806b67368c9e4711c9f5 Mon Sep 17 00:00:00 2001 From: e20639 Date: Fri, 15 Sep 2023 17:55:00 +0200 Subject: [PATCH] fix: small changes in epics_motor_ex, potentially only comments --- ophyd_devices/epics/devices/epics_motor_ex.py | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ophyd_devices/epics/devices/epics_motor_ex.py b/ophyd_devices/epics/devices/epics_motor_ex.py index f4a38c0..5e085eb 100644 --- a/ophyd_devices/epics/devices/epics_motor_ex.py +++ b/ophyd_devices/epics/devices/epics_motor_ex.py @@ -2,7 +2,10 @@ from ophyd import Component as Cpt, EpicsSignal, EpicsMotor class EpicsMotorEx(EpicsMotor): - """Extend EpicsMotor with extra configuration fields.""" + """Extend EpicsMotor with extra configuration fields. + motor_done_move + motor_is_moving + """ # configuration motor_resolution = Cpt(EpicsSignal, ".MRES", kind="config", auto_monitor=True) @@ -43,3 +46,20 @@ class EpicsMotorEx(EpicsMotor): # print out attributes that are being configured print("setting ", key, "=", value) getattr(self, key).put(value) + + # self.motor_done_move.subscribe(self._progress_update, run=False) + + # def kickoff(self) -> DeviceStatus: + # status = DeviceStatus(self) + # self.move( + # self._kickoff_params.get("position"), + # wait = False + # ) + # return status + + # def _progress_update(self, value, **kwargs) -> None: + # self._run_subs( + # sub_type=self.SUB_PROGRESS, + # value=value , + # done= 1, + # ) \ No newline at end of file