Skip to content

Commit

Permalink
Merge pull request #393 from PrometheusPi/fix_openPMD_uxyz_weighting
Browse files Browse the repository at this point in the history
fix get_data for weighting in momentum reader
  • Loading branch information
RemiLehe authored Sep 25, 2023
2 parents 0b46503 + da9efe3 commit f6140de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def read_species_data(series, iteration, species_name, component_name,
weighting_power = record.get_attribute('weightingPower')
if (macro_weighted == 1) and (weighting_power != 0):
w_component = next(species['weighting'].items())[1]
w = get_data( w_component )
w = get_data( series, w_component )
data *= w ** (-weighting_power)

# - Return positions, with an offset
Expand Down

0 comments on commit f6140de

Please sign in to comment.