Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

karabo-bridge-serve-run command #458

Merged
merged 13 commits into from
Nov 6, 2023
2 changes: 1 addition & 1 deletion docs/aligning_trains.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "xfel",
"display_name": "xfel (Python 3.7)",
"language": "python",
"name": "xfel"
},
Expand Down
2 changes: 1 addition & 1 deletion extra_data/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def serve_data(data, port, append_detector_modules=False,
count += 1
new_time = time.monotonic()
if count % 5 == 0:
rate = len(deque) / (new_time - sent_times[0])
rate = len(sent_times) / (new_time - sent_times[0])
takluyver marked this conversation as resolved.
Show resolved Hide resolved
print(f'Sent {count}/{ntrains} trains - Train ID {tid} - {rate:.1f} Hz', end='\r')
sent_times.append(new_time)

Expand Down