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

Tests for new fillna #569

Merged
merged 8 commits into from
Jul 24, 2023
Merged

Tests for new fillna #569

merged 8 commits into from
Jul 24, 2023

Conversation

bbuzz31
Copy link
Collaborator

@bbuzz31 bbuzz31 commented Jul 19, 2023

This should have all tests back up and working.

staged weather model files had to be updated and golden delay values had to be adjusted by (by less than a millimeter) in a few places to account for new interpolation scheme

@bbuzz31 bbuzz31 requested a review from jlmaurer July 19, 2023 04:12
@bbuzz31 bbuzz31 marked this pull request as draft July 20, 2023 17:40
Copy link
Collaborator

@jlmaurer jlmaurer left a comment

Choose a reason for hiding this comment

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

Great!

@@ -86,7 +86,7 @@ def prepareWeatherModel(
)

containment = weather_model.checkContainment(ll_bounds)
if not containment:
if not containment and not weather_model._Name.startswith('HRRR'):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why HRRR here and not other models?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well the other models are global, so I figured if something is outside there's a problem somewhere (like aoi specified incorrectly)

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a good point, but what if we or someone else introduces another regional model? would there be a way to be more general?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I put the ~inverse for now (If it the weather model is GMAO ERA5/T or HRES and its not contained it will crash).
Maybe we could add an attribute to the weather model class like is_global but I don't see an easy way of doing it smartly

@bbuzz31 bbuzz31 marked this pull request as ready for review July 20, 2023 19:59
@bbuzz31 bbuzz31 marked this pull request as draft July 21, 2023 16:27
@bbuzz31 bbuzz31 marked this pull request as ready for review July 21, 2023 19:43
@bbuzz31 bbuzz31 merged commit 134bb46 into dbekaert:dev Jul 24, 2023
3 checks passed
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.

2 participants