We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b953a0 commit 31f990fCopy full SHA for 31f990f
1 file changed
src/ctapipe_io_nectarcam/__init__.py
@@ -1407,7 +1407,7 @@ def guess_block_size_from_file(filename):
1407
if len(ids) > 100:
1408
break
1409
ids = np.array(ids, dtype=int)
1410
- block_size = int(np.median(np.array(ids[1:] - ids[:-1])))
+ block_size = int(np.rint(np.median(np.array(ids[1:] - ids[:-1]))))
1411
# print(f"{self.block_size = }")
1412
except Exception:
1413
print("Can't guess properly block size !")
0 commit comments