Skip to content

Commit

Permalink
fix zcat cumulative LASTNIGHT stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Sep 13, 2023
1 parent f54b943 commit 61de922
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/desi_zcatalog
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ for ifile, rrfile in enumerate(redrockfiles):
data.add_column(np.full(nrows, hdr['NIGHT'], dtype=np.int32),
index=icol, name='NIGHT')
elif args.group == 'cumulative':
data.add_column(np.full(nrows, hdr['NIGHT'], dtype=np.int32),
index=icol, name='LASTNIGHT')
if 'LASTNIGHT' not in data.colnames:
data.add_column(np.full(nrows, hdr['NIGHT'], dtype=np.int32),
index=icol, name='LASTNIGHT')
elif args.group == 'healpix':
data.add_column(np.full(nrows, hdr['HPXPIXEL'], dtype=np.int32),
index=icol, name='HEALPIX')
Expand Down

0 comments on commit 61de922

Please sign in to comment.