-
Notifications
You must be signed in to change notification settings - Fork 296
Fix copy to include Ancillary variables and Cell measures #3546
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
Conversation
This should be merged after rebasing with #3536 so that equality works for testing. |
ebde36d
to
232d953
Compare
This has now been rebased with #3536. |
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.
One small change, and please confirm whether this is still "DO NOT MERGE" since the rebasing has been done? Thanks @stephenworsley 😊
While AV's are a new feature, CM's are not. So I think there should be a what's new bugfix entry for the fact that CM's are now copied |
I have patched in a rough proof of concept fix for equality. This ought to be improvable once #3551 is merged. |
074c75c
to
0e416d8
Compare
Notes on the effects on all uses of
|
Thanks @stephenworsley, LGTM ✔ |
""" | ||
all_coords = [cube.coords() for cube in cubes] | ||
if object_get is None: |
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.
This is a public function, so you really need to extend the docstring to cover the changes.
The new 'object_get' keyword is undocumented.
It might also be desirable to rename some things here, since e.g. "coords" is no longer always what it says.
Another way is to create an enhanced, private inner routine + leave the public one as a thin wrapper for coords alone.
Given the naming of the function itself, that might actually be preferable.
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.
I've opened #3558 to address this.
Fixes another issue in #3483.