File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2237,8 +2237,8 @@ def proc_core_fields(filebytes, bpi):
2237
2237
2238
2238
# Not a skip - it is the actual sample number + annotation type store value
2239
2239
label_store = int (filebytes [bpi , 1 ]) >> 2
2240
- sample_diff += np .int64 (filebytes [bpi , 0 ]) + 256 * np . int64 (
2241
- filebytes [bpi , 1 ] & 3
2240
+ sample_diff += np .int64 (filebytes [bpi , 0 ]) + 256 * (
2241
+ np . int64 ( filebytes [bpi , 1 ]) & 3
2242
2242
)
2243
2243
bpi = bpi + 1
2244
2244
@@ -2324,7 +2324,7 @@ def proc_extra_field(
2324
2324
aux_notebytes = filebytes [
2325
2325
bpi + 1 : bpi + 1 + int (np .ceil (aux_notelen / 2.0 )), :
2326
2326
].flatten ()
2327
- if aux_notelen & 1 :
2327
+ if int ( aux_notelen ) & 1 :
2328
2328
aux_notebytes = aux_notebytes [:- 1 ]
2329
2329
# The aux_note string
2330
2330
aux_note .append ("" .join ([chr (char ) for char in aux_notebytes ]))
You can’t perform that action at this time.
0 commit comments