exception documentation

class RedefinedBaseMovementError(RuntimeError): (source)

View In Hierarchy

The subclass of BaseStage has overridden move_relative or move_absolute.

Overriding move_relative or move_absolute can be problematic as these use the external position not the hardware position. It is recommended to override _hardware_move_relative and _hardware_move_absolute instead.

The BaseStage will raise this on __init__, it is the last thing __init__ does. As such, this exception can be captured by try if a stage needs to override these for a specific reason.