Skip to content

Conversation

@sadielbartholomew
Copy link
Member

Fix #762. The reason for the underlying issue was that the Field.domain attribute called get_domain which was inherited from cfdm, which doesn't have the concept of cyclic axes. So quite similar in terms of cause to #763 (maybe we should check there aren't further cases of cyclic axes not being accounted for, in case other bugs might exist?).

new_bounds[
length - lower_offset : length, 1:
] = old_bounds[length - 1, 1:]
new_bounds[length - lower_offset : length, 1:] = (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just from linting the files I touched in this PR. For the release we can re-lint the whole codebase since it seems we are a bit behind on linting (black edits >10 files under cf/).

@sadielbartholomew
Copy link
Member Author

Merging after offline acceptance from @davidhassell.

@sadielbartholomew sadielbartholomew merged commit 981fcd0 into NCAS-CMS:main Apr 26, 2024
@sadielbartholomew sadielbartholomew deleted the cyclic-sets-domain branch April 26, 2024 13:44
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.

cyclic: different sets for Field.domain & corresponding Field

1 participant