Skip to content

Commit

Permalink
Update pmd_beamphysics/particles.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ken Lauer <[email protected]>
  • Loading branch information
ChristopherMayes and ken-lauer authored Nov 20, 2024
1 parent e9bf158 commit a8928ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmd_beamphysics/particles.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,8 @@ def fractional_split(self, fractions: Union[float, int, list], key: str):
particle_groups : list of ParticleGroup
A list of ParticleGroup objects, each representing a subset of particles based on the specified fractions.
Description:
------------
Description
-----------
This function splits the given group of particles into multiple subsets based on the provided attribute (e.g., position).
The splits are determined such that each specified fraction of the total particle weights is separated.
The function first sorts the particles by the specified key, computes the cumulative sum of weights,
Expand Down

0 comments on commit a8928ee

Please sign in to comment.