Closed bendichter closed 5 years ago
h5py uses shape
internally, and changing shape
will break things now or in the future. We can have DatasetView
only refer to the h5py.Dataset
object and not inherit from it, and then redirect calls to other methods of h5py.Dataset
. Should I go ahead with this?
LazyShape was replaced with shape in f94f6b7b262532d6e97f2d8cb5493d85052bfe9a
dataset_view.shape
should be the shape of the view, not the original dataset. I see you have implementedLazyShape
, but I think it should just beshape
, so that you can use shape to create iterators over the data as you normally would. If you want the shape of the original dataset, you can calldataset_vew._dataset.shape
. For this reason maybe we should remove the underscore prefix of the_dataset
property and make thisdataset_vew.dataset.shape
. Would this break anything?