Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.77 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.77 KB

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 [email protected]: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