pisces.particles.base.ParticleDataset.remove_particle_field#

ParticleDataset.remove_particle_field(group_name: str, field_name: str)[source]#

Remove a specific field from a particle group.

This method deletes the specified field from the given particle group. It is a destructive operation and cannot be undone.

Parameters:
  • group_name (str) – The name of the particle group containing the field to remove.

  • field_name (str) – The name of the field to remove.

Raises:

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