Created
July 6, 2020 15:51
-
-
Save danielballan/20e0b25bd365b6356ef6ef24b977c7e8 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