We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d2baf commit 5a3d227Copy full SHA for 5a3d227
neo/rawio/blackrockrawio.py
@@ -1053,9 +1053,11 @@ def _read_nsx_dataheader_spec_v30_ptp(
1053
filesize = self._get_file_size(filename)
1054
1055
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"])
+ if offset is None:
+ # This is read as an uint32 numpy scalar from the header so we transform it to python int
+ header_size = int(self._nsx_basic_header[nsx_nb]["bytes_in_headers"])
1059
+ else:
1060
+ header_size = offset
1061
1062
ptp_dt = [
1063
("reserved", "uint8"),
0 commit comments