Describe the issue:
When suite2p try to open an h5 file with 5D data structure, it can not iterate through frames with this error.
TypeError: Indexing arrays must have integer dtypes
The cause of the error is the fact that arguments of np.arange receives int / int when hdims != 3.
Reproduce the code example:
# needs an h5 file with 5D array structure.
Error message:
Traceback (most recent call last):
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3550, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-5c404d568d0f>", line 1, in <module>
f[key][irange, ...]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/h5py/_hl/dataset.py", line 831, in __getitem__
selection = sel.select(self.shape, args, dataset=self)
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/h5py/_hl/selections.py", line 82, in select
return selector.make_selection(args)
File "h5py/_selector.pyx", line 282, in h5py._selector.Selector.make_selection
File "h5py/_selector.pyx", line 197, in h5py._selector.Selector.apply_args
TypeError: Indexing arrays must have integer dtypes
Version information:
0.14.0
Context for the issue:
No response
Describe the issue:
When
suite2ptry to open an h5 file with 5D data structure, it can not iterate through frames with this error.TypeError: Indexing arrays must have integer dtypesThe cause of the error is the fact that arguments of
np.arangereceivesint / intwhenhdims != 3.Reproduce the code example:
# needs an h5 file with 5D array structure.Error message:
Version information:
0.14.0
Context for the issue:
No response