profiles.density.SNFWDensityProfile.to_hdf5#
- SNFWDensityProfile.to_hdf5(h5obj, name=None)#
Store profile metadata into an HDF5 object as attributes.
- Parameters:
h5obj (
File
,Group
, orDataset
) – The HDF5 container to attach metadata to. All of the metadata representing this profile is attached with name prefixed.name (
str
, optional) – Namespace prefix for attribute keys. Defaults to none, in which case parameters are given no prefix. This can be unsafe if saving multiple profiles to the same object.
Notes
Only metadata is stored. This does not save large arrays or derived results.