libgs.utils.Defaults.RECORD_SPECTRA

Defaults.RECORD_SPECTRA = True

If false, spectra will not be recorded and stored in database