Skip to content
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

Setting both relaxed_identities=Trueand ncvar_identities=True in cf.aggregate doesn't work. #341

Closed
davidhassell opened this issue Mar 7, 2022 · 0 comments · Fixed by #342
Assignees
Labels
bug Something isn't working
Milestone

Comments

@davidhassell
Copy link
Collaborator

As of v3.12.0, cf.aggregate with relaxed_identities=True raises an obscure exception when ncvar_identities=True is also set. This is not necessary. The following should aggregate nicely:

>>> import cf
>>> f = cf.example_field(0)
>>> cf.aggregate([f[:2], f[2:]], relaxed_identities=True, ncvar_identities=True) 
Traceback (most recent call last):
    ...
VaueError: 'relaxed' and 'nc_only' parameters cannot both be True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant