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.0.tar.gz
(3.0 kB
view hashes)
Built Distributions
Close
Hashes for lazy_ops-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b73aedbb9212e93fd2699692e3e8af19c715c8c3c82fbcef4b4a3a85cf4b68 |
|
MD5 | c5f3e1b6fe2fd05ecc6a25d3529b8fab |
|
BLAKE2b-256 | f1dfa91f5733587cfa6c803c2673af734a7c9e44b19b1935b4180d00bc61c3e5 |