Closed stan-dot closed 3 months ago
also I realized if sim motor actions are instant I might not get the assert on the difference between the readback and set point. there should be a way to do this, investigating...
Not sure, but some way that https://docs.python.org/3/howto/mro.html can get a consistent order out of HasName, Movable, Stoppable, Flyable, Preparable, Locatable
.
I think the issue is likely that several of these inherit each other already, so I would try:
StandardReadable, Flyable, Locatable, Preparable, Stoppable
since this covers all the methods.
You can stop the sim motor from moving with
with ophyd_async.core.mock_puts_blocked(motor.signal):
< do the set, assert, etc. >
thanks, trying this now
ah yes I forgot it's not a set but an ordered list. how should the inheritance order look like?