Skip to main content

zchop

This is a python library providing the function zchop, which replaces numbers that are close to zero with zero.

  • zchop traverses structures such as lists and numpy arrays, returning a copy that is the same as the input except that small numbers are set to zero.
  • zchop_mut is a mutating version of zchop that mutates lists and numpy arrays.

Comments

  • The parts of complex numbers are treated separately.
  • Non-numbers are passed unchanged.

Antecedents

This package is based on the Julia package ZChop.jl, which is in turn based on the Mathematica function Chop.

Metadata

Release files for zchop 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 zchop 0.1.0
File Size Uploaded Provenance Actions
zchop-0.1.0.tar.gz 2.3 kB Without provenance Details for zchop-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zchop 0.1.0
File Interpreter ABI Platform Actions
zchop-0.1.0-py3-none-any.whl Python 3 none any Details for zchop-0.1.0-py3-none-any.whl

Total release size: 4.6 kB

Release files / zchop-0.1.0.tar.gz

Download URL zchop-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
55aa18dace388d3c7c00b42cef583a52cadfabd0224af593fc9acac67d41d0d3
BLAKE2b-256 checksum
How to use checksums
56546a23f14bdffd9089219d0c2c7599ffbf47250bcbc68d39c947cb19d29d53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release files / zchop-0.1.0-py3-none-any.whl

Download URL zchop-0.1.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
018d9ea4e286ff82db7c00dd22c74c901685bbf373c8668ce0587d9e8a889bff
BLAKE2b-256 checksum
How to use checksums
0fecedbe4486f1f8bc41865af8ab3d4a5513a14757de8214b78a7097ed26b7fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Security for zchop 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files 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