diff --git a/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py b/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py index ad77c8c..50440a4 100644 --- a/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py +++ b/src/pymodaq_plugins_template/daq_move_plugins/daq_move_Template.py @@ -74,23 +74,19 @@ def get_actuator_value(self): pos = self.get_position_with_scaling(pos) return pos - def condition_to_reach_target(self) -> bool: - """ Implement the condition for exiting the polling mechanism and specifying that the + def user_condition_to_reach_target(self) -> bool: + """ Implement a condition for exiting the polling mechanism and specifying that the target value has been reached - Could be reimplemented to implement other conditions - - Returns + Returns ------- bool: if True, PyMoDAQ considers the target value has been reached """ # TODO either delete this method if the usual polling is fine with you, but if need you can # add here some other condition to be fullfilled either a completely new one or - # using or/and operations between the epsilon_bool and some other custom booleans - # for a usage example see DAQ_Move_brushlessMotor from the Thorlabs plugin - epsilon_bool = super().condition_to_reach_target() - - return epsilon_bool + # using or/and operations between the epsilon_bool and some other custom booleans + # for a usage example see DAQ_Move_brushlessMotor from the Thorlabs plugin + return True def close(self): """Terminate the communication protocol"""