From fb2ef4c73f7cf5d0c86c6840cb761d0b85e4bf7d Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Wed, 6 Oct 2021 15:25:36 -0700 Subject: Python Analysis of Restart Tests: Small Cleanup (#2368) * Python Analysis of Restart Tests: Small Cleanup * Remove Unused Import --- Examples/Tests/restart/analysis_restart.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Examples/Tests/restart/analysis_restart.py') diff --git a/Examples/Tests/restart/analysis_restart.py b/Examples/Tests/restart/analysis_restart.py index 0c0f01df5..51efc95a8 100755 --- a/Examples/Tests/restart/analysis_restart.py +++ b/Examples/Tests/restart/analysis_restart.py @@ -1,7 +1,6 @@ #! /usr/bin/env python import sys -import re import yt import numpy as np sys.path.insert(1, '../../../../warpx/Regression/Checksum/') @@ -11,9 +10,6 @@ tolerance = sys.float_info.epsilon print('tolerance = ', tolerance) filename = sys.argv[1] -psatd = True if re.search('psatd', filename) else False -averaged = True if re.search('avg', filename) else False - ds = yt.load( filename ) ad = ds.all_data() xb = ad['beam', 'particle_position_x'].to_ndarray() @@ -21,11 +17,7 @@ xe = ad['plasma_e', 'particle_position_x'].to_ndarray() zb = ad['beam', 'particle_position_z'].to_ndarray() ze = ad['plasma_e', 'particle_position_z'].to_ndarray() -filename = 'orig_restart_plt00010' -if psatd: - filename = 'orig_restart_psatd_plt00010' -if averaged: - filename = 'orig_restart_psatd_time_avg_plt00010' +filename = 'orig_' + filename ds = yt.load( filename ) ad = ds.all_data() xb0 = ad['beam', 'particle_position_x'].to_ndarray() -- cgit v1.2.3