diff --git a/python/lsst/atmospec/spectraction.py b/python/lsst/atmospec/spectraction.py index 090e911..e8cedb9 100644 --- a/python/lsst/atmospec/spectraction.py +++ b/python/lsst/atmospec/spectraction.py @@ -482,7 +482,8 @@ def run(self, exp, xpos, ypos, target, doFitAtmosphere, doFitAtmosphereOnSpectro parameters.PIXDIST_BACKGROUND + parameters.PIXWIDTH_BACKGROUND)) spectrum.atmospheric_lines = atmospheric_lines - spectrum.plot_spectrum() + if plotting: + spectrum.plot_spectrum() # PSF2D deconvolution if parameters.SPECTRACTOR_DECONVOLUTION_PSF2D: