lazy_load_vega¶
- synphot.spectrum.lazy_load_vega(vegafile=None, **kwargs)[source]¶
Convenience function to load a default Vega spectrum that is used throughout
synphotwhen 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.VegatoNonebefore running this function.synphot.spectrum.Vegawould be loaded as aSourceSpectrumif successful; otherwiseNone.- Parameters:
- vegafilestr or
None, optional Vega spectrum filename. If
None, usesynphot.config.conf.vega_file.- kwargsdict
Keywords acceptable by
synphot.specio.read_remote_spec().
- vegafilestr or
- Returns:
- err_messagestr
Error message, if any.