profiles.density.TNFWDensityProfile.to_yaml#

TNFWDensityProfile.to_yaml(filepath: str, **kwargs)#

Serialize the profile to a YAML file.

Parameters:
  • filepath (str) – Path to the output YAML file.

  • kwargs (dict) – Additional arguments passed to yaml.dump.