reading data in the noframe mode does not work
Reading data in the noframe mode needs to be fixed. Currently, on gets the following error
In [40]: w.get_data()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In [40], line 1
----> 1 w.get_data()
File /usr/lib/python3/dist-packages/h5file_detector/stream.py:73, in FileView.get_data(self, start, stop)
71 for frame_idx in trimmed_range:
72 frames.append(self._reader.read_frame(frame_idx))
---> 73 return np.array(frames)
File h5py/_debian_h5py_serial/_objects.pyx:54, in h5py._debian_h5py_serial._objects.with_phil.wrapper()
File h5py/_debian_h5py_serial/_objects.pyx:55, in h5py._debian_h5py_serial._objects.with_phil.wrapper()
File /usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/_hl/dataset.py:1040, in Dataset.__array__(self, dtype)
1034 @with_phil
1035 def __array__(self, dtype=None):
1036 """ Create a Numpy array containing the whole dataset. DON'T THINK
1037 THIS MEANS DATASETS ARE INTERCHANGEABLE WITH ARRAYS. For one thing,
1038 you have to read the whole dataset every time this method is called.
1039 """
-> 1040 arr = numpy.zeros(self.shape, dtype=self.dtype if dtype is None else dtype)
1042 # Special case for (0,)*-shape datasets
1043 if numpy.product(self.shape, dtype=numpy.ulonglong) == 0:
File /usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/_hl/dataset.py:447, in Dataset.shape(self)
444 return self._cache_props['shape']
446 with phil:
--> 447 shape = self.id.shape
449 # If the file is read-only, cache the shape to speed-up future uses.
450 # This cache is invalidated by .refresh() when using SWMR.
451 if self._readonly:
File h5py/_debian_h5py_serial/h5d.pyx:142, in h5py._debian_h5py_serial.h5d.DatasetID.shape.__get__()
File h5py/_debian_h5py_serial/h5d.pyx:143, in h5py._debian_h5py_serial.h5d.DatasetID.shape.__get__()
File h5py/_debian_h5py_serial/_objects.pyx:54, in h5py._debian_h5py_serial._objects.with_phil.wrapper()
File h5py/_debian_h5py_serial/_objects.pyx:55, in h5py._debian_h5py_serial._objects.with_phil.wrapper()
File h5py/_debian_h5py_serial/h5d.pyx:299, in h5py._debian_h5py_serial.h5d.DatasetID.get_space()
ValueError: Invalid dataset identifier (invalid dataset identifier)