diff options
author | 2021-12-10 02:57:53 -0800 | |
---|---|---|
committer | 2021-12-10 02:57:53 -0800 | |
commit | 80eb7c5a9e8e2265ab0e620a14a5970b2aeb9906 (patch) | |
tree | 298c10dd628b524eba208e51e4c55f632e127aed /Examples/analysis_default_regression.py | |
parent | 0831cf5543042bf244282d6671d3e8557eeb697e (diff) | |
download | WarpX-80eb7c5a9e8e2265ab0e620a14a5970b2aeb9906.tar.gz WarpX-80eb7c5a9e8e2265ab0e620a14a5970b2aeb9906.tar.zst WarpX-80eb7c5a9e8e2265ab0e620a14a5970b2aeb9906.zip |
Fix: analysis_default_regression.py
Mismatched checksum file due to crude hard-coding.
Diffstat (limited to 'Examples/analysis_default_regression.py')
-rwxr-xr-x | Examples/analysis_default_regression.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/analysis_default_regression.py b/Examples/analysis_default_regression.py index c920393fb..1c22fb738 100755 --- a/Examples/analysis_default_regression.py +++ b/Examples/analysis_default_regression.py @@ -1,5 +1,6 @@ #! /usr/bin/env python +import os import sys import re sys.path.insert(1, '../../../../warpx/Regression/Checksum/') @@ -9,7 +10,7 @@ import checksumAPI fn = sys.argv[1] # Get name of the test -test_name = fn[:-9] # Could also be os.path.split(os.getcwd())[1] +test_name = os.path.split(os.getcwd())[1] # Run checksum regression test if re.search( 'single_precision', fn ): |