pisces.particles.base.ParticleDataset.remove_particle_group#

ParticleDataset.remove_particle_group(group_name: str)[source]#

Remove a particle group from the dataset.

This method deletes the specified particle group and all its associated fields from the dataset. It is a destructive operation and cannot be undone.

Parameters:

group_name (str) – The name of the particle group to remove.

Raises:

KeyError – If the specified group does not exist in the dataset.