We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Improve error message from Field.set_construct when domain axes do not exist. For example:
Field.set_construct
>>> z = cf.Field() >>> nt = 450 >>> climdim = cf.DimensionCoordinate(data=cf.Data(numpy.arange(nt))) >>> z.set_construct(climdim) <snip> ValueError: Can't insert DimensionCoordinate: Ambiguous shape: (450,). Consider setting the 'axes' parameter.
It would be better in this case to indicate that a domain axis needs to be created first.
The text was updated successfully, but these errors were encountered:
When fixed, the error message in this case would say
ValueError: Can't insert <CF DimensionCoordinate: (450) >: There is no domain axis construct with size 450.
@JonathanGregory - is that OK?
Sorry, something went wrong.
davidhassell
Successfully merging a pull request may close this issue.
Improve error message from
Field.set_construct
when domain axes do not exist.For example:
It would be better in this case to indicate that a domain axis needs to be created first.
The text was updated successfully, but these errors were encountered: