pisces.models.stars.polytropes.PolytropicStarModel.copy_profile#

PolytropicStarModel.copy_profile(old_name: str, new_name: str)#

Create a duplicate of an existing profile under a new name.

Parameters:
  • old_name (str) – Name of the existing profile.

  • new_name (str) – Name for the copied profile.

Raises:

KeyError – If old_name does not exist or new_name already exists.