Skip to content

Commit

Permalink
exclude objtype bad
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Aug 23, 2024
1 parent cf38788 commit 161f722
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py/rvspecfit/desi/desi_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,9 @@ def select_fibers_to_fit(fibermap,
elif 'COADD_FIBERSTATUS' in fibermap.columns.names:
subset = subset & (fibermap['COADD_FIBERSTATUS'] == 0)

# Exclude skys but include anything else
subset = subset & (fibermap['OBJTYPE'] != 'SKY')
# Exclude skys and bad but include anything else
subset = subset & (fibermap['OBJTYPE'] != 'SKY') & (fibermap['OBJTYPE']
!= 'BAD')

# Always apply TARGETID selection if provided
if fit_targetid is not None:
Expand Down

0 comments on commit 161f722

Please sign in to comment.