Skip to content

Commit

Permalink
Ensure print_update() can't have an undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Oct 25, 2023
1 parent a67217f commit cda0b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra_data/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def serve_data(data, port, append_detector_modules=False,

sent_times = deque([time.monotonic()], 10)
count = 0
new_time = 0.
tid, rate = 0, 0.
def print_update(end='\r'):
print(f'Sent {count}/{ntrains} trains - Train ID {tid} - {rate:.1f} Hz', end=end)

Expand Down

0 comments on commit cda0b9c

Please sign in to comment.