Skip to content

Commit

Permalink
desi_proc_tilenight now considers its --cameras option
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-alvarez committed Mar 3, 2023
1 parent 5413720 commit 4eb147c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/desispec/scripts/proc_tilenight.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def main(args=None, comm=None):
prestd_camwords[expids[i]] = difference_camwords(camword,badcamword,suppress_logging=True)
else:
prestd_camwords[expids[i]] = camword
prestd_camwords[expids[i]] = camword_intersection([prestd_camwords[expids[i]],args.cameras])

laststep = str(exptable['LASTSTEP'][i]).lower()
if laststep in ('all', 'fluxcalib', 'skysub'):
Expand All @@ -107,10 +108,11 @@ def main(args=None, comm=None):
poststdstar_expids.append(expid)

joint_camwords = camword_union(list(prestd_camwords.values()), full_spectros_only=True)
joint_camwords = camword_intersection([joint_camwords, args.cameras])

poststd_camwords = dict()
for expid, camword in prestd_camwords.items():
poststd_camwords[expid] = camword_intersection([joint_camwords, camword])
poststd_camwords[expid] = camword_intersection([joint_camwords, camword, args.cameras])

#-------------------------------------------------------------------------
#- Create and submit a batch job if requested
Expand Down

0 comments on commit 4eb147c

Please sign in to comment.