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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bpcmp-1.2.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bpcmp-1.2.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file bpcmp-1.2.0.tar.gz.

File metadata

  • Download URL: bpcmp-1.2.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for bpcmp-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6482ca6e57f17c2ab3f461159b563e37f8bba82abefa03ffcc5887d48f8277c0
MD5 8546a0f9a038e7f5b1f8b670a7cdf263
BLAKE2b-256 d15acc1753827cba4b3177ac02fdd7c8910948be6d21981c4b78cb333bbe3bfa

See more details on using hashes here.

File details

Details for the file bpcmp-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: bpcmp-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for bpcmp-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fde62d1b82ad0742141a265716b6d6bd2b983cfc2c1143b5c05339cbdf698af
MD5 bab955ed9281c4d59e0a49ca0c606f2b
BLAKE2b-256 8b34c574e54f2c86873f4b6e2ef0657ed949fb0636c9da15b7d9d42549677bdd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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