You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

send_data.py 290 B

123456789101112131415161718
  1. """TODO: Add docstring."""
  2. import time
  3. import numpy as np
  4. import pyarrow as pa
  5. from dora import Node
  6. node = Node()
  7. i = 0
  8. for event in node:
  9. if i == 100:
  10. break
  11. else:
  12. i += 1
  13. now = time.perf_counter_ns()
  14. node.send_output("data", pa.array([np.uint64(now)]))