reichlab / covid19-forecast-hub

Projections of COVID-19, in standardized format

Home Page:https://covid19forecasthub.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

implement two checks for updated files in PRs

nickreich opened this issue · comments

For PR submissions that update existing forecast files, currently these are flagged as "forecast-updated". In addition, we would like to implement the following two checks, to start to inch us closer to Zoltar v4.0 compliance:

  • the updated file should contain predictions for all locations/targets/types that are in the existing file. E.g. if a file made a point prediction and a quantile prediction for "US" location, "1 wk ahead inc death" then the update should also have quantile and point predictions. If it doesn't let's for now add a "forecast-retraction" flag to the PR. Later, once Zoltar v4.0 is live and we have specific instructions for "explicit retractions", we will make this condition a "failing" condition.
  • the updated file cannot contain 100% duplicated rows from the existing file. The case we are thinking about is if rows are reordered but contain the same information as the existing file.

I have a sample PR that implements the validation for point 1 here in this PR - hannanabdul55#5