diff options
Diffstat (limited to 'Examples/Tests/PEC/analysis_pec.py')
-rwxr-xr-x | Examples/Tests/PEC/analysis_pec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/Tests/PEC/analysis_pec.py b/Examples/Tests/PEC/analysis_pec.py index a0449e463..32bb10ddf 100755 --- a/Examples/Tests/PEC/analysis_pec.py +++ b/Examples/Tests/PEC/analysis_pec.py @@ -20,6 +20,7 @@ import matplotlib.pyplot as plt import yt yt.funcs.mylog.setLevel(50) import numpy as np +import os sys.path.insert(1, '../../../../warpx/Regression/Checksum/') import checksumAPI @@ -75,7 +76,7 @@ print("tolerance_rel: " + str(tolerance_rel)) assert( max_Ey_error_rel < tolerance_rel ) assert( min_Ey_error_rel < tolerance_rel ) -test_name = fn[:-9] # Could also be os.path.split(os.getcwd())[1] +test_name = os.path.split(os.getcwd())[1] if re.search( 'single_precision', fn ): checksumAPI.evaluate_checksum(test_name, fn, rtol=1.e-3) |