pisces.models.galaxy_clusters.spherical.MagnetizedSphericalGalaxyClusterModel.remove_field#

MagnetizedSphericalGalaxyClusterModel.remove_field(name: str)#

Remove a physical field from the model.

Deletes the field from both memory and the HDF5 file.

Parameters:

name (str) – Name of the field to remove.

Raises:

KeyError – If the field does not exist.