is_moving property of motor Group
I observed a strange behavior with the .is_moving property of a motor group. If I move one of the motors of the group with the command move, then the property "is_moving" remains False, while the group status is MOVING. When using the .move method of the motor group everything is fine.
Is this behavior the one intended for .is_moving?
|__) | | /__` /__`
|__) |__ | .__/ .__/
Welcome to BLISS version 1.3.0 running on pclucio (in bliss Conda environment)
Copyright (c) 2015-2020 Beamline Control Unit, ESRF
-
INS2 [36]: from bliss.common.motor_group import Group
INS2 [37]: def test():
...: group = Group(omega,alpha)
...: move(omega,10,wait=False,relative=True)
...: print(f'group.state = {group.state}')
...: print(f'group.is_moving = {group.is_moving}')
...: print(f'omega.is_moving = {omega.is_moving}\n\n')
...: while omega.is_moving : sleep(0.1)
...: group.move(omega, 10, wait=False, relative=True)
...: print(f'group.state = {group.state}')
...: print(f'group.is_moving = {group.is_moving}')
...: print(f'omega.is_moving = {omega.is_moving}')
INS2 [38]: test()
Moving omega from 20 to 30
group.state = MOVING (Axis is MOVING)
group.is_moving = False
omega.is_moving = True
Moving omega from 30 to 40
group.state = MOVING (Axis is MOVING)
group.is_moving = True
omega.is_moving = True