trident.spectrum_generator.SpectrumGenerator.clear_spectrum

SpectrumGenerator.clear_spectrum()[source]

Clear the current spectrum in the SpectrumGenerator. Clears the existing spectrum’s flux and tau fields and replaces them with ones and zeros respectively. Clear the line list kept in the AbsorptionSpectrum object as well. Also clear the line_subset stored by the LineDatabase.