CDCgov / cfa-viral-lineage-model

Apache License 2.0
9 stars 0 forks source link

Small fixes #12

Closed afmagee42 closed 1 month ago

afmagee42 commented 1 month ago

Cleaning up a few things I found when trying to run the evaluation demo on a fresh repo copy.

The only actual bugs were:

  1. We needed to be creating the cache directory structure earlier; with ..., save_path.open("wb") as out_file otherwise errors on a fresh repository.
  2. Use of the cache was being set to different default values in different places. I changed things to make the default to use it.

The other changes are a bit more stylistic and/or pedantic:

  1. I replaced the contents of data/README.md with "see the help function" because we don't want to have multiple sources of truth (one is likely to end up out of sync otherwise).
  2. I made the path to included-divisions.txt an argument in load_metadata with a default, rather than a strictly hard-coded value. In so doing, I decided the default place to call this from was the top level of the repo, rather than /data.
  3. I changed the evaluation demo workflow slightly.
thanasibakis commented 1 month ago

Great catches, thanks!