Skip to main content

A 3D array-like NumPy-based data structure for large sparsely-populated volumes

Project description

chunky3d

A 3D array-like NumPy-based data structure for large sparsely-populated volumes

Build

Build Status

Introduction

This library provides a data structure, Sparse, which represents 3D volumetric data and supports a subset of np.ndarray features.

Example

>>> import numpy as np
>>> from chunky3d import Sparse

>>> s = Sparse(shape=(64, 64, 64))
>>> s[0, 0, 0]
0

>>> s.dtype
numpy.float64

>>> s.nchunks
8

>>> s.nchunks_initialized
0

>>> s[1, 2, 3] = 3
>>> s.nchunks_initialized
1

>>> s[:2, 2, 3:5]
array([[0., 0.],
       [3., 0.]])

Features

  • chunky3d.sparse_func - a collection of functions for analyzing chunked arrays, including morphological operations (opening, closing), thinning, connected components
  • Fast load and save using msgpack
  • Operations on arrays using .run(), with possible acceleration using multiprocessing
  • Accelerated lookup using numba
  • Interpolation (point probe)
  • Origin and spacing: representing 3D space with non-uniform spacing for different axes

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

chunky3d-0.1.0.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

chunky3d-0.1.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file chunky3d-0.1.0.tar.gz.

File metadata

  • Download URL: chunky3d-0.1.0.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for chunky3d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38a46a32dc806382dbafe0a2649881b426b3413d97ff365347218e6f29fd5601
MD5 6de43baaca9fc9d37c833057d391577d
BLAKE2b-256 8934d382ef29b7fb5a988492d11c99c477582d05b9848016b697f87c1949bf6f

See more details on using hashes here.

File details

Details for the file chunky3d-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chunky3d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for chunky3d-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8c3e44113845168b8c19fa0a6d2d95b86ca0b874dd8b9e3b280203df9f7cdf8
MD5 ba3f2869f3b5f9b1171bda1d2ba32927
BLAKE2b-256 694f2f73937dace7220f90454d40a8118a2cee3b1034f7b51b94888065756a99

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