Skip to content

Commit

Permalink
Fix double counting nights bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly committed Jan 14, 2021
1 parent fbd58b4 commit 2655bf3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions py/desisurvey/scripts/collect_etc.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ def number_in_conditions(exps, nightly_donefrac_requirement=0.5):
for cond in ['DARK', 'BRIGHT', 'GRAY']:
m = conditions[ind] == tiles.OBSCONDITIONS[cond]
out['NEXP_'+cond][i] = np.sum(m)
out['NNIGHT_'+cond][i] = len(np.unique(
exps['MJD_OBS'][ind[m]].astype('i4')))
# at Kitt Peak, a night never crosses an MJD boundary.
# So we count nights by counting the number of unique
# mjd integers.
Expand Down

0 comments on commit 2655bf3

Please sign in to comment.