diff options
Diffstat (limited to 'Examples/Tests/divb_cleaning/analysis.py')
-rwxr-xr-x | Examples/Tests/divb_cleaning/analysis.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/Tests/divb_cleaning/analysis.py b/Examples/Tests/divb_cleaning/analysis.py index 571b63a7d..4f7e34e36 100755 --- a/Examples/Tests/divb_cleaning/analysis.py +++ b/Examples/Tests/divb_cleaning/analysis.py @@ -9,6 +9,7 @@ import sys sys.path.insert(1, '../../../../warpx/Regression/Checksum/') import numpy as np +import os import yt yt.funcs.mylog.setLevel(50) import re @@ -42,7 +43,7 @@ tolerance = 1e-1 assert(rel_error < tolerance) -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) |