profiles.density.PseudoIsothermalDensityProfile.to_yaml#

PseudoIsothermalDensityProfile.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.