profiles.density.BaseSphericalDensityProfile.to_yaml# BaseSphericalDensityProfile.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.