spndarray
import numpy as np
import spndarray
# We have a dataset...
>>> data = np.zeros((10, 10, 10))
# It has a peculiar value at [5, 5, 5].
>>> data[5, 5, 5] = 3.14
# WE know that each voxel of this block is one meter:
>>> block = spndarray.spndarray(data, unit="m")
# Now we can access that same data in whatever unit we'd like:
>>> print(block[5000, 5000, 5000, "mm"])
3.14
# What if the voxels aren't perfect unit-cubes?
# In this example, the data are 0.5 x 0.5 x 5 meters per voxel:
>>> aniso_block = spndarray.spndarray(
data,
voxelsize=(0.5, 0.5, 5),
unit="m"
)
>>> print(aniso_block[2.5, 2.5, 25, 'm'])
3.14
Metadata
Release files for spndarray 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spndarray-0.0.1.tar.gz | 2.3 kB | Without provenance | Details for spndarray-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spndarray-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for spndarray-0.0.1-py2.py3-none-any.whl |
Total release size: 4.7 kB
Release files / spndarray-0.0.1.tar.gz
| Download URL | spndarray-0.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40af0e769d400fc3e671e5fd981e7a856dc31285ee0db359367a3d3361612765
|
|
BLAKE2b-256 checksum How to use checksums |
fb30f43202b3829ce674afa0159336d3dd20ab6f25fac18d526e35beb2fe236a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Release files / spndarray-0.0.1-py2.py3-none-any.whl
| Download URL | spndarray-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f4471d431afb50c0482bea1b79b196027ce4863e731cfd1fff54efc80e4b2c6c
|
|
BLAKE2b-256 checksum How to use checksums |
57561bf24b65e815e764f59c4d961c7c902ccabbec61d1ba7361e9b2744275a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Security for spndarray 0.0.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.