-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix bug where cf.Field.subspace
doesn't always correctly handle global cyclic subspaces
#830
Fix bug where cf.Field.subspace
doesn't always correctly handle global cyclic subspaces
#830
Conversation
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.
Lots of confusing talk of wardrobes (see in-line comments 😄) here, otherwise all good in that the fix works with good implementation and new testing coverage, but I think we have the case of a without/wo
query to also fix up in a similar way (see my in-line comment with the code snippet example) so please check that comment and let me know what you think.
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Co-authored-by: Sadie L. Bartholomew <[email protected]>
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.
Thanks for addressing my feedback. I've done a final sanity check after the new commits. All good, please merge.
Fixes #828.
This PR fixes and simplifies the treatment of cyclic subspaces in
cf.mixin.fielddomain._indices
. In the process, it refactorscf.mixin.fielddomain.anchor
by moving the business-end of that to the newcf.DimensionCoordinate.anchor
. This new method also allows for "cell" anchoring, which we might like to use later (see #824).