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

Handle all-caps soil-temp stations, like Frankfurt #689

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

vtnate
Copy link
Contributor

@vtnate vtnate commented Jan 1, 2025

Any background context you want to provide?

Some weather file names weren't being parsed correctly when looking up soil temp coefficients. Frankfurt was the first example we found of this. This handles those cases.

What does this PR accomplish?

If soil temp coeff lookup fails, try using only the first word of the station and capitalizing it. If that still doesn't work, error as before.

How should this be manually tested?

Build a demo project with the uo-cli, using with the Frankfurt weather file. Go through the default baseline workflow, and uo_des create-model. If that works successfully (it did on my machine! 😄 ) we're good to go

What are the relevant tickets?

Screenshots (if appropriate)

@vtnate vtnate self-assigned this Jan 1, 2025
@vtnate vtnate requested a review from JingWang-CUB January 1, 2025 00:49
@vtnate vtnate added the bug Something isn't working label Jan 1, 2025
Copy link
Collaborator

@JingWang-CUB JingWang-CUB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for fixing this so promptly!

@vtnate vtnate merged commit fe2536b into develop Jan 2, 2025
8 checks passed
@vtnate vtnate deleted the frankfurt-fix branch January 2, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants