Lazy slicing and transpose operations for h5py
Project description
lazy_ops
Provides a class to allow for lazy transposing and slicing operations on h5py datasets
Example Usage:
import h5py
from lazy_ops import DatasetView
dsetview = DatasetView(dataset) # dataset is an instantiated h5py dataset
view1 = dsetview.lazy_slice[1:10:2,:,0:50:5].lazy_transpose([2,0,1]).lazy_slice[25:55,1,1:4:1,:].lazy_transpose()
A = view1[:] # Brackets on DataSetView call the h5py slicing method, that returns the data
B = view1.dsetread() # same as view1[:]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lazy_ops-0.1.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for lazy_ops-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c45abd330f5c4b51905cdf557f1263845c40c55282a70463082c34f8eaca0faa |
|
MD5 | 093b44ddaf76705947e84973f0e20a9d |
|
BLAKE2b-256 | 9bd467f8998b85da444e8c96e060c73642caa49c2b60158ac8361e57136deca2 |