Skip to content

Commit

Permalink
force integer value for np.arange when indexing h5 file with 4D and…
Browse files Browse the repository at this point in the history
… 5D data be8830
  • Loading branch information
knowblesse committed Apr 1, 2024
1 parent be8830d commit db89971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite2p/io/h5.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def h5py_to_binary(ops):
im = f[key][irange, :, :]
else:
irange = np.arange(
ik / ncp, min(ik / ncp + nbatch / ncp, nframes_all / ncp),
int(ik / ncp), int(min(ik / ncp + nbatch / ncp, nframes_all / ncp)),
1)
if irange.size == 0:
break
Expand Down

0 comments on commit db89971

Please sign in to comment.