From a8928eee9be52c3485ef9a178bf9fa6cdb8a4236 Mon Sep 17 00:00:00 2001 From: Christopher Mayes <31023527+ChristopherMayes@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:41:20 -0800 Subject: [PATCH] Update pmd_beamphysics/particles.py Co-authored-by: Ken Lauer <152229072+ken-lauer@users.noreply.github.com> --- pmd_beamphysics/particles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd_beamphysics/particles.py b/pmd_beamphysics/particles.py index 52745f4..837a959 100644 --- a/pmd_beamphysics/particles.py +++ b/pmd_beamphysics/particles.py @@ -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,