lazy_load_vega

synphot.spectrum.lazy_load_vega(vegafile=None, **kwargs)[source]

Convenience function to load a default Vega spectrum that is used throughout synphot when no specific Vega spectrum is given.

This function only does lazy loading; i.e., it will simply return any previously loaded Vega, if available. To force a reload, set synphot.spectrum.Vega to None before running this function.

synphot.spectrum.Vega would be loaded as a SourceSpectrum if successful; otherwise None.

Parameters:
vegafilestr or None, optional

Vega spectrum filename. If None, use synphot.config.conf.vega_file.

kwargsdict

Keywords acceptable by synphot.specio.read_remote_spec().

Returns:
err_messagestr

Error message, if any.