Skip to content

Commit

Permalink
lower valid frac threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed Jun 28, 2024
1 parent 2945e78 commit 3079e73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions msaexp/slit_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -4377,6 +4377,7 @@ def extract_spectra(
join=[0, 3, 5],
split_uncover=True,
stuck_threshold=0.3,
valid_frac_threshold=0.1,
pad_border=2,
sort_by_sn=False,
position_key="y_index",
Expand Down Expand Up @@ -4692,10 +4693,10 @@ def extract_spectra(
)
continue

elif valid_frac < 0.2:
elif valid_frac < valid_frac_threshold:
utils.log_comment(
utils.LOGFILE,
f"\n valid pixels {valid_frac:.2f}\n",
f"\n valid pixels {valid_frac:.2f} < {valid_frac_threshold}\n",
verbose=VERBOSE_LOG,
)
continue
Expand Down

0 comments on commit 3079e73

Please sign in to comment.