profiles.density.CoredNFWDensityProfile.to_dict#
- CoredNFWDensityProfile.to_dict() dict[str, Any] #
Serialize this profile to a minimal dictionary representation.
The dictionary contains:
class
: The profile class name (for reconstruction)parameters
: A nested dictionary of parameters with explicit unit strings
Example output:
{ "class": "MyProfile", "parameters": { "a": {"value": 3.0, "unit": "kpc"}, "b": {"value": 5.0, "unit": ""}, }, }
- Returns:
Serialized profile representation suitable for storage or reconstruction.
- Return type: