sbailey / surveyqa

DESI Survey QA Dashboard
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add options to only run a subset of nights #47

Open sbailey opened 5 years ago

sbailey commented 5 years ago

Add option to surveyqa.core.makeplots to take a list of nights to process. If None, generate all nights in the input exposures. e.g. something like

def makeplots(exposures, tiles, outdir, nights=None):
    # ...
    if nights is None:
        nights = sorted(set(exposures['NIGHT']))
    # ...
    for night in nights:
        # ...

This also means that passing in an empty list will skip generating any nightly plots (useful for faster debugging when iterating on the summary page). Make sure to update docstring for usage of nights. I'll file a separate ticket about how to handle the night-to-night linkage.

Add option to surveyqa.core.makeplots to skip generating the summary page (useful for faster debugging when iterating on the nightly plots).