Created
July 13, 2020 09:37
-
-
Save papr/7b940b2c02e05135f59d599a6a90c5f6 to your computer and use it in GitHub Desktop.
Custom Annotations-plugin that does not log incoming annotations
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
from annotations import Annotation_Capture | |
class No_Log_Annotation_Capture(Annotation_Capture): | |
def recent_events(self, events): | |
recent_annotation_data = [] | |
while self.annotation_sub.new_data: | |
topic, annotation_datum = self.annotation_sub.recv() | |
recent_annotation_data.append(annotation_datum) | |
events["annotation"] = recent_annotation_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment