Skip to main content

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 details)

Uploaded Source

Built Distribution

lazy_ops-0.1.2-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lazy_ops-0.1.2.tar.gz.

File metadata

  • Download URL: lazy_ops-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for lazy_ops-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cf5caf013fa60febf86a9b9fcc9d8afcf6b242a6eeeaeb03562f96a1604229fa
MD5 5830ab50c322cb3df3f0939de6310b8d
BLAKE2b-256 bc6d907d32a45ec03bea18aee75c37ce89b0d153588eac981b148e2aac0269b1

See more details on using hashes here.

File details

Details for the file lazy_ops-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: lazy_ops-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for lazy_ops-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e44558fc22ce1d80f4ad17a3d98d51824df8a4d83f0c5fec3065e7405d69abd1
MD5 d36c8f13292fe88777b23cd1359016f6
BLAKE2b-256 fda63a98eb7bf29057b28b50b1f9d306d90d5fecbb4148d5a16b4d65f1d3d7af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page