fix: added backward compatible fix
This commit is contained in:
@@ -308,3 +308,11 @@ class OwisGrid(AsyncFlyScanBase):
|
||||
yield from self.stubs.send_rpc_and_wait("samy", "velocity.put", self.high_velocity)
|
||||
yield from self.stubs.send_rpc_and_wait("samy", "acceleration.put", self.high_acc_time)
|
||||
super().finalize()
|
||||
|
||||
def _move_scan_motors_and_wait(self, pos):
|
||||
# TODO: remove this method once BEC MR 637 is merged
|
||||
# pylint: disable=no-member
|
||||
if hasattr(super(), "_move_scan_motors_and_wait"):
|
||||
yield from super()._move_scan_motors_and_wait(pos)
|
||||
else:
|
||||
yield from self._move_and_wait(pos)
|
||||
|
||||
@@ -215,3 +215,11 @@ class SgalilGrid(AsyncFlyScanBase):
|
||||
# logger.info('Testing Scan abortion, would have raised here!')
|
||||
# except Exception as exc:
|
||||
# logger.info(f'{exc}')
|
||||
|
||||
def _move_scan_motors_and_wait(self, pos):
|
||||
# TODO: remove this method once BEC MR 637 is merged
|
||||
# pylint: disable=no-member
|
||||
if hasattr(super(), "_move_scan_motors_and_wait"):
|
||||
yield from super()._move_scan_motors_and_wait(pos)
|
||||
else:
|
||||
yield from self._move_and_wait(pos)
|
||||
|
||||
Reference in New Issue
Block a user