Skip to main content

Comparison tool for ADIOS2 bp output

Project description

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

Project details


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.1.0.tar.gz (19.1 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.1.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bpcmp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 887b82dc2d6d982ac38d36f295c5c5ed2d2d28cf6f3461ca56934b8fb072ffd6
MD5 9ccda94620bd4db5e360ca4048b4af39
BLAKE2b-256 8afce9b5a0bb397e4056b12cae7c73d234af096419469aec71cfc09137d68d8a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bpcmp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ec2aea45d39c2fe6d27ef75c924a490e5342c280bd609b4492a9197e0da0e24
MD5 4d2dcd768ba5d4bfd58fbcc0197404b4
BLAKE2b-256 a83fc7025c38c0cc2e68c186bf33642cebbec7f55642b8abfedd41fcc9854967

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page