diff options
author | 2022-07-22 14:45:14 -0700 | |
---|---|---|
committer | 2022-07-22 14:45:14 -0700 | |
commit | a4be76993e18c1f5adc5c25fcdf0602838a54ff2 (patch) | |
tree | 36001e14bceeaf985b5302aebead4cf26e0c1045 /Examples/Modules | |
parent | 812456172e3223687e986ed27a95c6d402723120 (diff) | |
download | WarpX-a4be76993e18c1f5adc5c25fcdf0602838a54ff2.tar.gz WarpX-a4be76993e18c1f5adc5c25fcdf0602838a54ff2.tar.zst WarpX-a4be76993e18c1f5adc5c25fcdf0602838a54ff2.zip |
CI: Add Missing Regression Analysis (NCI corrector) (#3252)
Diffstat (limited to 'Examples/Modules')
-rwxr-xr-x | Examples/Modules/nci_corrector/analysis_ncicorr.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Examples/Modules/nci_corrector/analysis_ncicorr.py b/Examples/Modules/nci_corrector/analysis_ncicorr.py index d3849e707..118b03fed 100755 --- a/Examples/Modules/nci_corrector/analysis_ncicorr.py +++ b/Examples/Modules/nci_corrector/analysis_ncicorr.py @@ -8,6 +8,7 @@ # License: BSD-3-Clause-LBNL +import os import re import sys @@ -17,6 +18,9 @@ import yt yt.funcs.mylog.setLevel(0) +sys.path.insert(1, '../../../../warpx/Regression/Checksum/') +import checksumAPI + fn = sys.argv[1] use_MR = re.search( 'nci_correctorMR', fn ) != None @@ -43,3 +47,6 @@ print("energy threshold (from benchmark): %s" %energy_threshold) print("energy from this run: %s" %energy) assert( energy < energy_threshold ) + +test_name = os.path.split(os.getcwd())[1] +checksumAPI.evaluate_checksum(test_name, filename) |