catalystneuro / lazy_ops

Lazy transposing and slicing of h5py and Zarr Datasets
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

entire slice read before indexing #9

Closed bendichter closed 4 years ago

bendichter commented 4 years ago

On this line

https://github.com/ben-dichter-consulting/lazy_ops/blob/38432436dfa3eced8d6a2a73062f303bb05e154e/lazy_ops/lazy_loading.py#L117

the entire view is read into memory and then sliced as requested. Instead, we should only read the data from the slice that is requested.