desihub / desispec

DESI spectral pipeline
BSD 3-Clause "New" or "Revised" License
35 stars 24 forks source link

simplify workflow logic #2175

Closed sbailey closed 5 months ago

sbailey commented 6 months ago

Simplify workflow logic

pseudocode from @akremin @sbailey whiteboad discussion Jan 24:

exptable, override_info = read_exptable(night)
proctable = read_proctable(night)

# try to run ccdcalib job
# returns success=False if e.g. we don't have enough cals yet and override_info hasn't told us
#   to do something else; exit and wait for next invocation
success, ptable = do_ccdcalib(exptable, proctable, override_info, dryrun)
if not success:
    exit()

success, ptable = do_arcsflats(exptable, proctable, override_info, dryrun)
if not success:
    exit()

loop over science tiles in exptable:
    ...
sbailey commented 5 months ago

Implemented in PR #2187. Closing.