def move_replacement(position, wait=False, **kwargs): st = original_move(position, wait=False, **kwargs) positioner.user_readback.sim_put(position) positioner.motor_done_move.sim_put(1) positioner.motor_is_moving.sim_put(0) positioner._done_moving(success=True) if wait: wait_status(st) return st
def move_replacement(position, wait=False, **kwargs): st = original_move(position, wait=False, **kwargs) # if pv_positioner.done is not None: # pv_positioner.done.sim_put(1 - pv_positioner.done_value) # pv_positioner.done.sim_put(pv_positioner.done_value) pv_positioner._done_moving(success=True) if wait: wait_status(st) return st