diff options
author | 2023-08-10 16:22:52 -0700 | |
---|---|---|
committer | 2023-08-10 16:22:52 -0700 | |
commit | 6ea18be7120684e2f704fd6753f2f2fc8e77ce35 (patch) | |
tree | 9761abcf825c17d7e2a80f4a62c099751c99a4db /Examples/Tests/scraping/analysis_rz.py | |
parent | 45e1b7262a7fab54ed062e514fd2768e762d51f2 (diff) | |
download | WarpX-6ea18be7120684e2f704fd6753f2f2fc8e77ce35.tar.gz WarpX-6ea18be7120684e2f704fd6753f2f2fc8e77ce35.tar.zst WarpX-6ea18be7120684e2f704fd6753f2f2fc8e77ce35.zip |
Fix Python test due to recent openPMD-viewer update (#4177)
Diffstat (limited to 'Examples/Tests/scraping/analysis_rz.py')
-rwxr-xr-x | Examples/Tests/scraping/analysis_rz.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/Tests/scraping/analysis_rz.py b/Examples/Tests/scraping/analysis_rz.py index 8f82e01bf..0390eed58 100755 --- a/Examples/Tests/scraping/analysis_rz.py +++ b/Examples/Tests/scraping/analysis_rz.py @@ -53,7 +53,7 @@ def n_remaining_particles( iteration ): w, = ts_full.get_particle(['w'], iteration=iteration) return len(w) def n_scraped_particles( iteration ): - timestamp = ts_scraping.get_particle( ['timestamp'] ) + timestamp = ts_scraping.get_particle( ['timestamp'], iteration=ts_scraping.iterations[0] ) return (timestamp <= iteration).sum() n_remaining = np.array([ n_remaining_particles(iteration) for iteration in ts_full.iterations ]) n_scraped = np.array([ n_scraped_particles(iteration) for iteration in ts_full.iterations ]) |