pisces.extensions.simulation.gadget.particles.GadgetParticleDataset.update_group_metadata#

GadgetParticleDataset.update_group_metadata(group_name: str, metadata: dict)#

Update the metadata attributes for a specific particle group.

This method allows you to modify or add metadata attributes for a given particle group. It updates the attributes in memory and writes them back to the HDF5 file.

Parameters:
  • group_name (str) – The name of the particle group whose metadata is to be updated.

  • metadata (dict) – A dictionary containing the metadata attributes to update or add.

Raises:

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