Skip to content

Commit

Permalink
further tidy from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-simpson committed Sep 16, 2024
1 parent 6578b3d commit d26f502
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions geminidr/core/primitives_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
from astropy.io.registry import IORegistryError
from astropy.io import fits
from astropy.utils.exceptions import AstropyUserWarning
from astropy.modeling import Model, fitting, models
from astropy.stats import sigma_clip
from astropy.table import Table, hstack, vstack, MaskedColumn
from astropy.modeling import Model, models
from astropy.table import Table, vstack, MaskedColumn
from gwcs import coordinate_frames as cf
from gwcs.wcs import WCS as gWCS
from matplotlib import pyplot as plt
Expand All @@ -41,8 +40,6 @@
import geminidr.interactive.server
from astrodata import AstroData
from astrodata.provenance import add_provenance
from astrodata.utils import Section
from geminidr.core.primitives_preprocess import _attach_rectification_model
from geminidr.core.primitives_resample import Resample
from geminidr.gemini.lookups import DQ_definitions as DQ
from geminidr.gemini.lookups import extinction_data as extinct
Expand All @@ -57,10 +54,9 @@
from gempy.library import peak_finding, tracing, transform, wavecal
from gempy.library.config import RangeField
from gempy.library.fitting import fit_1D
from gempy.library.matching import KDTreeFitter, match_sources, fit_model
from gempy.library.matching import KDTreeFitter
from gempy.library.spectral import Spek1D
from gwcs.utils import CoordinateFrameError
from gempy.library.tracing import pinpoint_peaks
from recipe_system.utils.decorators import parameter_override, capture_provenance
from recipe_system.utils.md5 import md5sum

Expand Down Expand Up @@ -4680,7 +4676,6 @@ def tracePinholeApertures(self, adinputs=None, **params):
# determineDistortion
widths = 0.42466 * fwidth * np.arange(0.75, 1.26, 0.05) # TODO!
# These are returned sorted by pixel coordinate
initial_peaks, _ = tracing.find_wavelet_peaks(
initial_peaks, _ = peak_finding.find_wavelet_peaks(
data, widths=widths, mask=mask & DQ.not_signal,
variance=variance, min_snr=min_snr,
Expand Down

0 comments on commit d26f502

Please sign in to comment.