Skip to content

Commit 5a3d227

Browse files
committed
fix error verison II the revenge
1 parent 17d2baf commit 5a3d227

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,9 +1053,11 @@ def _read_nsx_dataheader_spec_v30_ptp(
10531053
filesize = self._get_file_size(filename)
10541054

10551055
data_header = {}
1056-
index = 0
1057-
# This is read as an uint32 numpy scalar from the header so we transform it to python int
1058-
header_size = offset or int(self._nsx_basic_header[nsx_nb]["bytes_in_headers"])
1056+
if offset is None:
1057+
# This is read as an uint32 numpy scalar from the header so we transform it to python int
1058+
header_size = int(self._nsx_basic_header[nsx_nb]["bytes_in_headers"])
1059+
else:
1060+
header_size = offset
10591061

10601062
ptp_dt = [
10611063
("reserved", "uint8"),

0 commit comments

Comments
 (0)