From 782162dca12cbacc7c0f236aa48b075a4d32f3ca Mon Sep 17 00:00:00 2001 From: Debora Pelliccia Date: Thu, 19 Dec 2024 16:35:50 -1000 Subject: [PATCH] small fix --- pypeit/core/arc.py | 4 ++-- pypeit/core/flexure.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pypeit/core/arc.py b/pypeit/core/arc.py index 15f4d35ac..810f20764 100644 --- a/pypeit/core/arc.py +++ b/pypeit/core/arc.py @@ -1002,8 +1002,8 @@ def detect_lines(censpec, sigdetect=5.0, fwhm=4.0, fit_frac_fwhm=1.25, input_thr sigma_lower=3.0, sigma_upper=3.0, cenfunc= np.nanmedian, stdfunc = np.nanstd) if stddev == 0.0: - msgs.warn('stddev = 0.0, so resetting to 1.0') - stddev = 1.0 + msgs.warn('stddev = 0.0, so resetting to 0.1') + stddev = 0.1 thresh = med + sigdetect * stddev else: med = 0.0 diff --git a/pypeit/core/flexure.py b/pypeit/core/flexure.py index aca2f6a2c..ef6caec42 100644 --- a/pypeit/core/flexure.py +++ b/pypeit/core/flexure.py @@ -29,15 +29,12 @@ from pypeit import msgs from pypeit import dataPaths from pypeit import io -from pypeit import utils -from pypeit.display import display from pypeit.core.wavecal import autoid from pypeit.core import arc from pypeit.core import extract from pypeit.core import fitting from pypeit.core import qa from pypeit.core import trace -from pypeit.core.wavecal import wvutils from pypeit.datamodel import DataContainer from pypeit.images.detector_container import DetectorContainer from pypeit.images.mosaic import Mosaic