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

Address python generated warnings #357

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

justin-richling
Copy link
Collaborator

@justin-richling justin-richling commented Feb 14, 2025

This PR will clean up some warnings that python prints to console (not ADF warnings).

amwg_table: - Add check if case has only one year of data. If so, ignore statistics and just add means to table.

  • python warning was justified, but now is good

plotting_functions: - Change global average function from global_average to spatial_average to suppress the warnings that come from the spurious underflow error bug in numpy's mean calculation.

Thanks

amwg_table:
Add check if case has less than 2 years of data. If there is only one year of data for a case, ignore statistics.

plotting_functions:
Change global average function from `global_average` to `spatial_average` to supress the warnings that come from the bug in numpy's mean spurious underflow error: numpy/numpy#4895
d616610
@justin-richling justin-richling merged commit cc7d435 into NCAR:main Feb 14, 2025
7 checks passed
@justin-richling justin-richling deleted the python-warning-fix branch February 14, 2025 16:47
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