Skip to content

Commit

Permalink
standardize obstype capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Mar 31, 2023
1 parent 2af821d commit 86096ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py/desispec/scripts/proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ def main(args=None, comm=None):
hdr = comm.bcast(hdr, root=0)
camhdr = comm.bcast(camhdr, root=0)

if args.obstype is not None:
args.obstype = args.obstype.upper()

known_obstype = ['SCIENCE', 'ARC', 'FLAT', 'ZERO', 'DARK',
'TESTARC', 'TESTFLAT', 'PIXFLAT', 'SKY', 'TWILIGHT', 'OTHER']
only_nightlybias = args.nightlybias and args.expid is None
Expand Down Expand Up @@ -193,7 +196,7 @@ def main(args=None, comm=None):
log.critical('No --obstype, but also not just nightlybias ?!?')
sys.exit(1)

if args.obstype == 'dark' and args.nightlybias:
if args.obstype == 'DARK' and args.nightlybias:
jobdesc = 'ccdcalib'

if args.obstype == 'SCIENCE':
Expand Down

0 comments on commit 86096ed

Please sign in to comment.