Skip to content

Commit

Permalink
fit_continuum(): use harsher sigma-clipping of FWHM measurements or e…
Browse files Browse the repository at this point in the history
…lse there's no rejection given the small number statistics
  • Loading branch information
chris-simpson committed Mar 18, 2021
1 parent 0a47f47 commit 2e77a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gempy/gemini/gemini_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,8 @@ def fit_continuum(ad):

# Clip outliers in FWHM
if len(table) >= 3:
table = table[~sigma_clip(table['fwhm_arcsec']).mask]
table = table[~sigma_clip(table['fwhm_arcsec'], sigma=2,
maxiters=2).mask]
good_sources.append(table)

return good_sources[0] if single else good_sources
Expand Down

0 comments on commit 2e77a97

Please sign in to comment.