Skip to content
Snippets Groups Projects

Summaryslice status

Merged Johannes Schumann requested to merge summaryslice_status into master
All threads resolved!
Files
2
+ 8
2
@@ -30,7 +30,7 @@ def get_rate(value):
def unpack_bits(value):
"""Helper to unpack bits to bool flags (little endian)"""
value = np.array(value).astype(np.int64)
value = np.array(value).astype(np.int32)
value = value.reshape(-1, 1)
value = value.view(np.uint8)
value = np.flip(value, axis=1)
@@ -56,7 +56,13 @@ def get_udp_max_sequence_number(value):
def has_udp_trailer(value):
"""Returns the UDP Trailer flag (fifo)"""
"""Returns the UDP Trailer flag (fifo)
Parameters
----------
value : int32
The integer value to be parsed.
"""
return np.any(np.bitwise_and(value, np.left_shift(1, 31)))
Loading