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

Apply suggestion to km3io/daq.py

parent 1c0b1dc3
No related branches found
No related tags found
1 merge request!7Summaryslice status
Pipeline #7969 passed with warnings
......@@ -45,7 +45,13 @@ def unpack_bits(value):
def get_channel_flags(value):
"""Returns the hrv/fifo flags for the PMT channels (hrv/fifo)"""
"""Returns the hrv/fifo flags for the PMT channels (hrv/fifo)
Parameters
----------
value : int32
The integer value to be parsed.
"""
channel_bits = np.bitwise_and(value, 0x3FFFFFFF)
flags = unpack_bits(channel_bits)
return np.flip(flags, axis=1)[:, :31]
......
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