Skip to main content

bpcmp

Utility which allows for the comparison of two ADIOS2 bp output. The user must specify the location of the output and can use verbose output, set the absolute and relative tolerances for float type variables, and specify attributes and variables to ignore.

Inspired by this gist.

Floating point comparison done using numpy allclose.

Install from PyPi:

pip install bpcmp

Install from source:

git clone git@github.com:PrincetonUniversity/bpcmp.git
cd bpcmp
pip install .   # include the -e option to make the installation editable

Usage:

bpcmp out1.bp out2.bp

All of the arguments are optional.

Argument Description
-v LEVEL Use for verbose output level (0,1,2) = (nothing, errors only, everything)
-r RTOL Set the relative tolerance when comparing float variables (default is zero)
-a ATOL Set the absolute tolerance when comparing float variables (default is zero)
--ignore-atts IGNORE_ATTS Provide list of attributes to ignore
--ignore-vars IGNORE_VARS Provide list of variables to ignore
bpcmp out1.bp out.bp -v 1 -r 0.000001 -a 0.0001 --ignore-atts att1 att2 --ignore-vars var1 var2

Also included is a bpdump utility for dumping the contents of ADIOS2 bp output to the screen:

bpdump out1.bp

There is an optional --vars which will dump only the specified variables.

Metadata

Release files for bpcmp 1.2.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 bpcmp 1.2.0
File Size Uploaded Provenance Actions
bpcmp-1.2.0.tar.gz 19.2 kB Without provenance Details for bpcmp-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 37.8 kB

Release files / bpcmp-1.2.0.tar.gz

Download URL bpcmp-1.2.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6482ca6e57f17c2ab3f461159b563e37f8bba82abefa03ffcc5887d48f8277c0
BLAKE2b-256 checksum
How to use checksums
d15acc1753827cba4b3177ac02fdd7c8910948be6d21981c4b78cb333bbe3bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / bpcmp-1.2.0-py3-none-any.whl

Download URL bpcmp-1.2.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fde62d1b82ad0742141a265716b6d6bd2b983cfc2c1143b5c05339cbdf698af
BLAKE2b-256 checksum
How to use checksums
8b34c574e54f2c86873f4b6e2ef0657ed949fb0636c9da15b7d9d42549677bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for bpcmp 1.2.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.

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