From 2a165ab4577d500f1178dd4aab92fa41777eaae2 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Wed, 15 Nov 2023 17:23:28 +0100 Subject: [PATCH] Replace typo `INPUT` to `STOP` --- examples/python-dataflow/object_detection.py | 2 +- examples/python-dataflow/plot.py | 2 +- examples/python-dataflow/webcam.py | 2 +- examples/python-operator-dataflow/webcam.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/python-dataflow/object_detection.py b/examples/python-dataflow/object_detection.py index 445d65ea..2107b30f 100755 --- a/examples/python-dataflow/object_detection.py +++ b/examples/python-dataflow/object_detection.py @@ -27,7 +27,7 @@ for event in node: node.send_output("bbox", arrays, event["metadata"]) else: print("[object detection] ignoring unexpected input:", event_id) - elif event_type == "INPUT": + elif event_type == "STOP": print("[object detection] received stop") elif event_type == "ERROR": print("[object detection] error: ", event["error"]) diff --git a/examples/python-dataflow/plot.py b/examples/python-dataflow/plot.py index e28d8016..74939481 100755 --- a/examples/python-dataflow/plot.py +++ b/examples/python-dataflow/plot.py @@ -92,7 +92,7 @@ for event in node: case DoraStatus.STOP: print("plotter returned stop status") break - elif event_type == "INPUT": + elif event_type == "STOP": print("received stop") else: print("received unexpected event:", event_type) diff --git a/examples/python-dataflow/webcam.py b/examples/python-dataflow/webcam.py index fa85e2cc..00b47f27 100755 --- a/examples/python-dataflow/webcam.py +++ b/examples/python-dataflow/webcam.py @@ -42,7 +42,7 @@ while time.time() - start < 10: cv2.imencode(".jpg", frame)[1].tobytes(), event["metadata"], ) - elif event_type == "INPUT": + elif event_type == "STOP": print("received stop") break else: diff --git a/examples/python-operator-dataflow/webcam.py b/examples/python-operator-dataflow/webcam.py index f6dc13d2..8b55db40 100755 --- a/examples/python-operator-dataflow/webcam.py +++ b/examples/python-operator-dataflow/webcam.py @@ -58,7 +58,7 @@ class Operator: pa.array(frame.ravel()), dora_event["metadata"], ) - elif event_type == "INPUT": + elif event_type == "STOP": print("received stop") else: print("received unexpected event:", event_type)