Skip to content

Commit db89971

Browse files
committed
force integer value for np.arange when indexing h5 file with 4D and 5D data be8830
1 parent be8830d commit db89971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suite2p/io/h5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def h5py_to_binary(ops):
7474
im = f[key][irange, :, :]
7575
else:
7676
irange = np.arange(
77-
ik / ncp, min(ik / ncp + nbatch / ncp, nframes_all / ncp),
77+
int(ik / ncp), int(min(ik / ncp + nbatch / ncp, nframes_all / ncp)),
7878
1)
7979
if irange.size == 0:
8080
break

0 commit comments

Comments
 (0)