From fd76761941bd2ea58dd1eae7abc04d6dab79e8f1 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 1 Aug 2024 10:29:13 -0700 Subject: [PATCH] Remove hard-coded species name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Franz Pöschel --- src/binding/python/openpmd_api/DataFrame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/binding/python/openpmd_api/DataFrame.py b/src/binding/python/openpmd_api/DataFrame.py index cc16bd0957..55db5d1769 100644 --- a/src/binding/python/openpmd_api/DataFrame.py +++ b/src/binding/python/openpmd_api/DataFrame.py @@ -114,7 +114,7 @@ def iterations_to_dataframe(series, species_name): df = pd.concat( ( series.iterations[i] - .particles["electrons"] + .particles[species_name] .to_df() .assign(iteration=i) for i in series.iterations @@ -171,7 +171,7 @@ def iterations_to_cudf(series, species_name): ( cudf.from_pandas( series.iterations[i] - .particles["electrons"] + .particles[species_name] .to_df() .assign(iteration=i) )