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

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-0.0.4.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

bpcmp-0.0.4-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bpcmp-0.0.4.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for bpcmp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 206ad46c6a483ec1d97329d62d8070c2000ff8e8c4c6750d0fd1e91909af1507
MD5 cdb92674b5b7d204de03e160d392fce7
BLAKE2b-256 1ad908eaedfa6a351c9d3ac763c516622cf03f053740ed56a93cc84e67471bd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bpcmp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for bpcmp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f67b4251d4210d9fa1dfe08ea4b40d4e87df4412b4429e54443441e79d94fae7
MD5 e44c2550b7493c14825cc9ed612180ca
BLAKE2b-256 e2345cb80736e90db69470d03e2a10c91ebcf0f8d60456e071eb4d5e968dcfa3

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