aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-12-16 18:58:30 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-16 18:58:30 -0800
commita194b909f73c44703b013b39dbcead0f278a8ba6 (patch)
treefea340813e7ecb633accbd7d50ea92e738faca51 /Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
parent10d1746419dc9381e657297e03bc255875d5e94d (diff)
downloadWarpX-a194b909f73c44703b013b39dbcead0f278a8ba6.tar.gz
WarpX-a194b909f73c44703b013b39dbcead0f278a8ba6.tar.zst
WarpX-a194b909f73c44703b013b39dbcead0f278a8ba6.zip
Generalize Analysis Scripts: Number of Digits (plt) (#2683)
* Update Scripts to Handle New File Names * Use glob in Analysis of Collision Tests * Use rstrip in Analysis of Collision Tests * Regex: Match ends-in-digits Thanks Phil! :) Co-authored-by: Edoardo Zoni <ezoni@lbl.gov> Co-authored-by: Phil Miller <unmobile+gh@gmail.com>
Diffstat (limited to 'Examples/Tests/particles_in_PML/analysis_particles_in_pml.py')
-rwxr-xr-xExamples/Tests/particles_in_PML/analysis_particles_in_pml.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py b/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
index cfee8e389..ebc517e55 100755
--- a/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
+++ b/Examples/Tests/particles_in_PML/analysis_particles_in_pml.py
@@ -17,6 +17,7 @@ is close to 0 once the particles have left. With regular
PML, this test fails, since the particles leave a spurious
charge, with associated fields, behind them.
"""
+import os
import sys
import yt
yt.funcs.mylog.setLevel(0)
@@ -53,5 +54,5 @@ else:
print("tolerance_abs: " + str(tolerance_abs))
assert max_Efield < tolerance_abs
-test_name = filename[:-9] # Could also be os.path.split(os.getcwd())[1]
+test_name = os.path.split(os.getcwd())[1]
checksumAPI.evaluate_checksum(test_name, filename)