-
Notifications
You must be signed in to change notification settings - Fork 296
Make concat mismatch warning for scalar coords more accurate #4387
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
Make concat mismatch warning for scalar coords more accurate #4387
Conversation
…ences (which doesn't know) to _match (which does)
@rcomer I've added you as reviewer as you raised the issue, but can get someone else on it instead if you'd prefer |
Hi @wjbenfold, I’m happy to have a look at this, though I don’t think I’m qualified to answer this question:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me. How many places is this function called in the codebase? Is it just the two you point out in #4096?
Do we need an additional test that picks up the default case?
It's called repeatedly in the method where it's called on scalar coordinates, but nowhere else I can see: Lines 525 to 554 in 2d53161
This is already covered by the other tests in that file, e.g. iris/lib/iris/tests/unit/concatenate/test_concatenate.py Lines 137 to 143 in 2d53161
|
Thanks for doing this @wjbenfold and @jamesp 🎉 |
* main: (23 commits) Suggest type hinting (SciTools#4390) area weight regrid test fixes (SciTools#4432) Update latest.rst (SciTools#4425) Added @wjbenfold to the core dev list (SciTools#4423) Removed addition of period from wrap_lons. (SciTools#4421) Add release docs sections describing the role of a Release Manager (SciTools#4413) Subset should always return None if no value matches are found (SciTools#4417) What's new for SciTools#4400 (SciTools#4422) `iris.analysis.AreaWeighted` regrid speedup (SciTools#4400) [pre-commit.ci] pre-commit autoupdate (SciTools#4419) Remove newline to satisfy setuptools (SciTools#4418) Updated environment lockfiles (SciTools#4416) NAME loader fixes (SciTools#4411) Updated whatsnew for PR 4402 (SciTools#4410) Support test data in benchmark workflows (SciTools#4402) What's new for pr 4387 (SciTools#4405) Make concat mismatch warning for scalar coords more accurate (SciTools#4387) Added line to latest release notes for updates to pp_save_rules.py (SciTools#4404) Update pp_save_rules.py (SciTools#4391) [pre-commit.ci] pre-commit autoupdate (SciTools#4403) ...
🚀 Pull Request
Description
Added a "reason" keyword argument to
_coordinate_differences
as currently it attaches the reason, and whilst it can diagnose some of the problem, it doesn't know if it's just been given metadata or also values to check, whereas the calling method does.Fixes #4096
Question for reviewer:
Consult Iris pull request check list