sncosmo.get_source

sncosmo.get_source(name, version=None, copy=False)[source]

Retrieve a Source from the registry by name.

Parameters:
namestr

Name of source in the registry.

versionstr, optional

Version identifier for sources with multiple versions. Default is None which corresponds to the latest, or only, version.

copybool, optional

If True and if name is already a Source instance, return a copy of it. (If name is a str a copy of the instance in the registry is always returned, regardless of the value of this parameter.) Default is False.