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
Installation
$ pip install lazy_ops
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.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for lazy_ops-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44558fc22ce1d80f4ad17a3d98d51824df8a4d83f0c5fec3065e7405d69abd1 |
|
MD5 | d36c8f13292fe88777b23cd1359016f6 |
|
BLAKE2b-256 | fda63a98eb7bf29057b28b50b1f9d306d90d5fecbb4148d5a16b4d65f1d3d7af |