Skip to content

Commit

Permalink
Remove hard-coded species name
Browse files Browse the repository at this point in the history
Co-authored-by: Franz Pöschel <franz.poeschel@gmail.com>
  • Loading branch information
ax3l and franzpoeschel authored Aug 1, 2024
1 parent cb5041d commit fd76761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/binding/python/openpmd_api/DataFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
)
Expand Down

0 comments on commit fd76761

Please sign in to comment.