From ff8b73f58d71762e8d81be797c8afd1519d79c2a Mon Sep 17 00:00:00 2001 From: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Date: Fri, 19 Nov 2021 00:24:40 -0800 Subject: 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 --- Examples/Tests/ParticleDataPython/analysis.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Examples/Tests/ParticleDataPython/analysis.py') 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 -- cgit v1.2.3