ChristopherMayes / openPMD-beamphysics

Tools for analyzing and viewing particle data in the openPMD standard, extension beamphysics.
https://christophermayes.github.io/openPMD-beamphysics/
Apache License 2.0
16 stars 15 forks source link

Add equal_weights option to resample, fix Genesis4 bug #51

Closed ChristopherMayes closed 9 months ago

ChristopherMayes commented 9 months ago

Previously write_genesis4_distribution was incorrectly resampling with weights for export. Genesis4 requires equal weights for this type of distribution. This PR: