nextstrain / forecasts-ncov

SARS-CoV-2 variant growth rates and frequency forecasts
https://nextstrain.org/sars-cov-2/forecasts/
7 stars 2 forks source link

fix: lineage_to_clade missed a `.` #79

Closed corneliusroemer closed 8 months ago

corneliusroemer commented 8 months ago

Previous logic made HK.34 belong to HK.3, because the "comparison_lineage" was missing a trailing . in .startswith()

I've tried to add a unit test but I couldn't figure out how to get vscode to import the functions in the script from outside the script.

corneliusroemer commented 8 months ago

Thanks for testing! It seems to have worked first shot 🙃

Some CI could be helpful eventually for this but maybe not worth due to complexity (yet).