Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor mos #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Refactor mos #16

wants to merge 4 commits into from

Conversation

e100
Copy link

@e100 e100 commented May 3, 2021

I moved the MOS parsing code in metar-v4.py into a separate module and rewrote it in a manner that I think will be much easier to maintain in the future. Also fixed some data types so comparisons are numeric rather than string.

The motivation for this change was that it was easier to do this to add support for TMP than it was to merge TMP processing into existing code. I am working on a feature to also show temperatures and needed TMP support for this to work with the MOS data.

I did not update metar-display-v4.py to use the new MOS module, I do not have a display to test with but I see no reason making similar changes that I made in metar-v4.py would not work.

e100 added 4 commits May 2, 2021 20:14
…ed by other components. The goal was to make the code easier to maintain and follow should it need additional fixes in the future
…lso fixed various string comparisons that should be numeric comparisons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant