MArray adds masks to your favorite Python Array API Standard compatible array library.
Install with pip:
pip install marray
or conda:
conda install -c conda-forge marray-python
Use the from...import...as syntax to get a masked array namespace.
# use with any Array API compatible library, installed separately
from marray import numpy as mxp
import numpy as xp # optional (if the non-masked namespace is desired)
The resulting mxp namespace has all the features of xp that are specified
in the Array API standard, but they are modified to be mask-aware. Typically, the
signatures of functions in the mxp namespace match those in the standard;
the one notable exception is the addition of a mask keyword argument of asarray.
mxp.asarray([1, 2, 3], mask=[False, True, False])
# MArray(array([1, 2, 3]), array([False, True, False]))
In the spirit of the Zen of Python, this is the one and only obvious way to set the mask of an array.
Documentation provided by attributes of xp are exposed in the mxp
namespace and are accessible via help. For more information, please see
the tutorial.
Metadata
Release files for marray 0.0.12
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 |
|---|---|---|---|---|
| marray-0.0.12.tar.gz | 110.1 kB | Without provenance | Details for marray-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marray-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for marray-0.0.12-py3-none-any.whl |
Total release size: 134.1 kB
Release files / marray-0.0.12.tar.gz
| Download URL | marray-0.0.12.tar.gz |
|---|---|
| Size | 110.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9cb475b0dee78ecb0f56cf0e7003d2bdb7d060ae935454e833823767c08d2bc
|
|
BLAKE2b-256 checksum How to use checksums |
25b03b482320283b51e35ccbbd1a9d448b8a0882b974eca6204bd9027c582d7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / marray-0.0.12-py3-none-any.whl
| Download URL | marray-0.0.12-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86e1bf6120e9eb39ab3c4b4dd9ae8283f8f92d5c2895c0fc0f56c6255c50ecb7
|
|
BLAKE2b-256 checksum How to use checksums |
ac31ec95df1853307419b173c1063669e865124222337e89bcf8ef57c20c8594
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for marray 0.0.12
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.