Skip to content

Instantly share code, notes, and snippets.

@papr
Created July 13, 2020 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papr/7b940b2c02e05135f59d599a6a90c5f6 to your computer and use it in GitHub Desktop.
Save papr/7b940b2c02e05135f59d599a6a90c5f6 to your computer and use it in GitHub Desktop.
Custom Annotations-plugin that does not log incoming annotations
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