aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/RepellingParticles/analysis_repelling.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests/RepellingParticles/analysis_repelling.py')
-rwxr-xr-xExamples/Tests/RepellingParticles/analysis_repelling.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/Examples/Tests/RepellingParticles/analysis_repelling.py b/Examples/Tests/RepellingParticles/analysis_repelling.py
index e9df1e4b2..0aa3ed53d 100755
--- a/Examples/Tests/RepellingParticles/analysis_repelling.py
+++ b/Examples/Tests/RepellingParticles/analysis_repelling.py
@@ -22,12 +22,16 @@ w is the weight of the individual macroparticles
d is the distance between them
beta is the velocity normalized by the speed of light
"""
-import numpy as np
-from scipy.constants import m_e, c, physical_constants
-import sys, re, os
-import yt
import glob
+import os
+import re
+import sys
+
import matplotlib.pyplot as plt
+import numpy as np
+from scipy.constants import c, m_e, physical_constants
+import yt
+
yt.funcs.mylog.setLevel(0)
# Check plotfile name specified in command line
@@ -74,5 +78,6 @@ assert np.allclose( -beta2[1:], beta_th[1:], atol=0.01 )
# Run checksum regression test
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksumAPI
+
test_name = os.path.split(os.getcwd())[1]
checksumAPI.evaluate_checksum(test_name, last_filename)