sbailey / surveyqa

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

added offline capabilities #60

Closed williyamshoe closed 5 years ago

williyamshoe commented 5 years ago

core: -checks if files the 4 necessary files are present -if not, create/recreate directory and download files summary & nightly: -makes adjustment in html so if offline, use downloaded files

sbailey commented 5 years ago

Thanks, this update is important to have for real operations. I made a few stylistic updates, but am going to cut myself off at this point and merge, saving the rest for a later cleanup pass.

For the future: we have replicated HTML template preamples in survey.py and nightly.py, and those are coupled to surveyqa.core.check_offline_files for what files are downloaded where. That should probably all move moved into core so that there is a self consistent place that determines where offline bokeh files should be stored, and ensures that the template preamples match that. But in the spirit of not letting the perfect be the enemy of the good, I'll merge this PR now.