-
Notifications
You must be signed in to change notification settings - Fork 281
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
unexpected and undocumented behaviour in dim coord assoc. #609
Comments
Was this issue fixed by #587? If so can we close this? |
I've put this in the v1.7 milestone as it sounds like there is a bug here, I just don't know what it is - can anyone shed any light? |
Ah, I see (it has taken a long time to understand the problem, but I has finally clicked - perhaps the issue description could have been a little cleared in describing the problem). Essentially I believe the complaint is that It is the ambiguity of using the coordinate name that is the complaint/bug here. I'm going to push this out of v1.7 as I don't think it is a show stopped. |
Thank you for your interest, yes this is what was intended as the 'issue' raised. Cheers @pelson, still on my radar! will look into it! |
No idea when they were removed, but those name matching lines are no longer present. |
https://github.com/SciTools/iris/blob/master/lib/iris/cube.py#L791
Currently we are looking at whether the given coord shares its name with a coordinate on the cube. I really dont think this belongs in coord_dims at all and may result in unexpected results to users.
Effected tests:
test_contrived_differential1 (iris.tests.test_analysis_calculus.TestCalculusWKnownSolutions)
test_contrived_spherical_curl1 (iris.tests.test_analysis_calculus.TestCalculusWKnownSolutions)
test_contrived_sphrical_curl2 (iris.tests.test_analysis_calculus.TestCalculusWKnownSolutions)
Since this is not documented, I would at the very least label it as a bug, further more, the test failures based on its removal require investigation, determining why its necessary.
Happy to look into this myself when I have time.
The text was updated successfully, but these errors were encountered: