Skip to content
Snippets Groups Projects
Commit 84439695 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Extract the number of UDP packets based on the dq_status value

parent c04eb2bc
No related branches found
No related tags found
1 merge request!7Summaryslice status
Pipeline #7842 passed with warnings
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -27,6 +27,9 @@ def get_rate(value):
else:
return MINIMAL_RATE_HZ * np.exp(value * RATE_FACTOR)
def get_number_udp_packets(value):
"""Return the number of received UDP packets based on the dq_status value"""
return value & 0x7FFF
class DAQReader:
"""Reader for DAQ ROOT files"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment