- sncosmo.get_source(name, version=None, copy=False)¶
Retrieve a Source from the registry by name.
Name of source in the registry.
- versionstr, optional
Version identifier for sources with multiple versions. Default is
Nonewhich corresponds to the latest, or only, version.
- copybool, optional
If True and if
nameis already a Source instance, return a copy of it. (If
nameis a str a copy of the instance in the registry is always returned, regardless of the value of this parameter.) Default is False.