Skip to main content

PyPI version tests

Delta2D - numcodecs implementation

Numcodecs implementation of the [Delta] filter applied to 2D input data.

This implementation enables one to apply delta filters on specific dimentions as a filter in Zarr.

Installation

Install via pip:

pip install delta2D-numcodecs

Or from sources:

git clone https://github.com/AllenNeuralDynamics/delta2D-numcodecs.git
cd flac-numcodecs
pip install .

Usage

This is a simple example on how to use the Delta2D codec with zarr:

from delta2D_numcodecs import Delta2D

data = ... # any 2D dumpy array
# here we assume that the data has a shape of (num_samples, num_channels)

# instantiate Delta2D in time dimension
delta_time = Delta2D(dtype=data.dtype, axis=0)

# instantiate Delta2D in space dimension
delta_space = Delta2D(dtype=data.dtype, axis=1)

# using default Zarr compressor
z_time = zarr.array(data, filters=[delta_time])
z_space = zarr.array(data, filters=[delta_space])
# apply in both time and space, sequentally
z_time_space = zarr.array(data, filters=[delta_time, delta_space])

data_read = z[:]

Available **kwargs can be browsed with: Delta2D?

NOTE: In order to reload in zarr an array saved with the Delta2D, you just need to have the delta2D_numcodecs package installed.

Metadata

Release files for delta2D-numcodecs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for delta2D-numcodecs 0.1.0
File Size Uploaded Provenance
delta2D_numcodecs-0.1.0.tar.gz 3.9 kB Without provenance Details

Release files / delta2D_numcodecs-0.1.0.tar.gz

Download URL delta2D_numcodecs-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b16ff20afcc11de0367ef8cecf5a3b7d762c8c45b01b779e9f3cb9cdc35b65af
BLAKE2b-256 checksum
How to use checksums
a79f19b7b4ce035752e70d97f49ac4de81922d78403b7e220e97e7ff0eaf51ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for delta2D-numcodecs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page