Skip to content
Snippets Groups Projects

Summaryslice status

Merged Johannes Schumann requested to merge summaryslice_status into master
All threads resolved!
Files
2
+ 1
6
@@ -38,11 +38,6 @@ def unpack_bits(value):
return np.unpackbits(value).reshape(length, -1).astype(bool)
def get_fifo_status(value):
"""Returns the fifo status (fifo)"""
return np.any(np.bitwise_and(value, 2**31))
def get_channel_flags(value):
"""Returns the hrv/fifo flags for the PMT channels (hrv/fifo)"""
channel_bits = np.bitwise_and(value, 0x3FFFFFFF)
@@ -62,7 +57,7 @@ def get_udp_max_sequence_number(value):
def has_udp_trailer(value):
"""Returns the UDP Trailer flag (fifo)"""
return np.any(np.bitwise_and(value, np.leftshift(1, 31)))
return np.any(np.bitwise_and(value, np.left_shift(1, 31)))
class DAQReader:
Loading