Skip to content

Commit d4a0ebd

Browse files
committed
offset
1 parent 9bb7718 commit d4a0ebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,11 +1002,11 @@ def __read_nsx_dataheader_variant_b(
10021002
f"Invalid NSX data block header at offset {current_offset_bytes:#x} in ns{nsx_nb} file. "
10031003
f"Expected header_flag=1, got {header_flag}. "
10041004
f"This may indicate file corruption or unsupported NSX format variant. "
1005-
f"Block index: {data_block_index}, File size: {filesize} bytes"
1005+
f"Block index: {data_block_index}, File size: {filesize_bytes} bytes"
10061006
)
10071007
timestamp = packet_header["timestamp"]
1008-
offset_to_data_block_start = current_offset_bytes + packet_header.dtype.itemsize
10091008
num_data_points = int(packet_header["nb_data_points"])
1009+
offset_to_data_block_start = current_offset_bytes + packet_header.dtype.itemsize
10101010

10111011
data_header[data_block_index] = {
10121012
"header": header_flag,

0 commit comments

Comments
 (0)