Skip to content

Commit 131b292

Browse files
committed
fixed bdio issue w/ numpy>2.0
1 parent f398806 commit 131b292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyobs/IO/bdio.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ def read_bdio_header(self):
174174
hdr = self.read(dtypes.INT32, 5)
175175
pyobs.assertion(hdr[0] == self.BDIO_MAGIC, "Not a bdio file")
176176
rlen = hdr[1] & int("00000fff", 16)
177-
self.header["version"] = (hdr[1] & int("ffff0000", 16)) >> 16
177+
self.header["version"] = (int(hdr[1]) & int("ffff0000", 16)) >> 16
178178
pyobs.assertion(self.header["version"] == self.BDIO_VERSION, "Not a bdio file")
179179
self.header["dirinfo"] = [
180-
(hdr[2] & int("ffc00000", 16)) >> 22,
180+
(int(hdr[2]) & int("ffc00000", 16)) >> 22,
181181
(hdr[2] & int("003fffff", 16)),
182182
]
183183
self.header["ctime"] = datetime.datetime.fromtimestamp(hdr[3])

0 commit comments

Comments
 (0)