@@ -2162,7 +2162,7 @@ def proc_ann_bytes(filebytes, sampto):
2162
2162
update = {"subtype" : True , "chan" : True , "num" : True , "aux_note" : True }
2163
2163
# Get the next label store value - it may indicate additional
2164
2164
# fields for this annotation, or the values of the next annotation.
2165
- current_label_store = filebytes [bpi , 1 ] >> 2
2165
+ current_label_store = int ( filebytes [bpi , 1 ]) >> 2
2166
2166
2167
2167
while current_label_store > 59 :
2168
2168
subtype , chan , num , aux_note , update , bpi = proc_extra_field (
@@ -2176,7 +2176,7 @@ def proc_ann_bytes(filebytes, sampto):
2176
2176
update ,
2177
2177
)
2178
2178
2179
- current_label_store = filebytes [bpi , 1 ] >> 2
2179
+ current_label_store = ( filebytes [bpi , 1 ]) >> 2
2180
2180
2181
2181
# Set defaults or carry over previous values if necessary
2182
2182
subtype , chan , num , aux_note = update_extra_fields (
@@ -2236,7 +2236,7 @@ def proc_core_fields(filebytes, bpi):
2236
2236
bpi = bpi + 3
2237
2237
2238
2238
# Not a skip - it is the actual sample number + annotation type store value
2239
- label_store = filebytes [bpi , 1 ] >> 2
2239
+ label_store = ( filebytes [bpi , 1 ]) >> 2
2240
2240
sample_diff += np .int64 (filebytes [bpi , 0 ]) + 256 * np .int64 (
2241
2241
filebytes [bpi , 1 ] & 3
2242
2242
)
0 commit comments