Created
July 6, 2020 15:51
-
-
Save danielballan/ebf1f5cb9d1fea7004a7f3bb2244aba2 to your computer and use it in GitHub Desktop.
Clear status object once it is complete.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyDetector(...): | |
def _acquire_changed(self, value=None, old_value=None, **kwargs): | |
super().acquire_changed(value=value, old_value=old_value, **kwargs) | |
if self._status.done: | |
# Clear the state to be ready for the next round. | |
self._status = None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment