Skip to content

Commit

Permalink
No explicit test on STD_WD when writing standards
Browse files Browse the repository at this point in the history
Treats WDs in the same way as other standards, i.e.relying on them having the observing conditions set correctly in targetmask.
  • Loading branch information
apcooper committed Aug 9, 2017
1 parent 7a69904 commit eb059cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions py/desitarget/mock/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,13 +838,11 @@ def _update_spectra_status(result):
os.rename(skyfile+'.tmp', skyfile)

# Write out the dark- and bright-time standard stars.
for stdsuffix, stdbit in zip(('dark', 'bright'), ('STD_FSTAR', 'STD_BRIGHT')):
for stdsuffix, stdbit in zip(('dark', 'bright'), ('STD_FSTAR', 'STD_BRIGHT', 'STD_WD')):
# stdfile = os.path.join(output_dir, 'standards-{}-{}.fits'.format(stdsuffix, healsuffix))
stdfile = mockio.findfile('standards-{}'.format(stdsuffix), nside, pixnum, basedir=output_dir)

istd = (pixnum == targpix) * ( (
(targets['DESI_TARGET'] & desi_mask.mask(stdbit)) |
(targets['DESI_TARGET'] & desi_mask.mask('STD_WD')) ) != 0)
istd = (pixnum == targpix) * ( ( (targets['DESI_TARGET'] & desi_mask.mask(stdbit)) ) != 0)
#istd = (targets['DESI_TARGET'] & desi_mask.mask(stdbit)) != 0

if np.count_nonzero(istd) > 0:
Expand Down

0 comments on commit eb059cb

Please sign in to comment.