avwx-rest / avwx-engine

Aviation Weather parsing engine. METAR & TAF
MIT License
90 stars 31 forks source link

Preserve Station ID when sanitizing Wind Speed #58

Closed NickGlauberCirium closed 1 year ago

NickGlauberCirium commented 1 year ago

Description

A minor modification to skip the Station ID token during the Wind Speed sanitation that is performed within parsing.sanitation.base.py::sanitize_report_list(). Prior to this change, some station IDs that end in "K" were being erroneously corrected to end in "KT".

I modified an existing test case within tests/parsing/data/sanitize_metar_list_cases.json to validate. Prior to this change, K13K would become K13KT after sanitation.

Checklist