fix: added backward compatible fix

This commit is contained in:
2024-05-22 11:52:32 +02:00
parent ed335dc308
commit 37d80e9a7b
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -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)
+8
View File
@@ -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)