aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/ParticleDataPython/analysis.py
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2021-11-19 00:24:40 -0800
committerGravatar GitHub <noreply@github.com> 2021-11-19 00:24:40 -0800
commitff8b73f58d71762e8d81be797c8afd1519d79c2a (patch)
tree24a45f9adec454b38810c003c765d5997bef06eb /Examples/Tests/ParticleDataPython/analysis.py
parent430c972dd812298a80067be51e462d2a05240a05 (diff)
downloadWarpX-ff8b73f58d71762e8d81be797c8afd1519d79c2a.tar.gz
WarpX-ff8b73f58d71762e8d81be797c8afd1519d79c2a.tar.zst
WarpX-ff8b73f58d71762e8d81be797c8afd1519d79c2a.zip
Mini-PR: Improve Python particle attribute access CI test (#2581)
* updated the Python particle attribute access CI test * additional fixes needed for tests to pass * changes requested by Axel during code review * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Examples/Tests/ParticleDataPython/analysis.py')
-rwxr-xr-xExamples/Tests/ParticleDataPython/analysis.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/Examples/Tests/ParticleDataPython/analysis.py b/Examples/Tests/ParticleDataPython/analysis.py
index e9ff0cbd0..e6fb64576 100755
--- a/Examples/Tests/ParticleDataPython/analysis.py
+++ b/Examples/Tests/ParticleDataPython/analysis.py
@@ -7,12 +7,8 @@
# This script just checks that the PICMI file executed successfully.
# If it did there will be a plotfile for the final step.
-import yt
+import sys
-plotfile = 'Python_particle_attr_access_plt_000010'
-ds = yt.load( plotfile ) # noqa
+step = int(sys.argv[1][-5:])
-plotfile = 'Python_particle_attr_access_plt_100010'
-ds = yt.load( plotfile ) # noqa
-
-assert True
+assert step == 10