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

Handling of Exceptions from coord(axis="x") #2029

Open
MoseleyS opened this issue Sep 2, 2024 · 0 comments
Open

Handling of Exceptions from coord(axis="x") #2029

MoseleyS opened this issue Sep 2, 2024 · 0 comments

Comments

@MoseleyS
Copy link
Contributor

MoseleyS commented Sep 2, 2024

The IMPROVER code contains a few places where axes are selected using their abbreviation ("x", "y", "z", "t") rather than a full name. This is particularly useful if we don't know what the full name is.

The behaviour of Iris in the instance where the requested abbreviation does not match any coord is to return None, which will then raise an obscure error message when the code attempts to use the None object like a Coord object.

It would be helpful to developers and users of IMPROVER code if we trapped these cases and raised a useful error message. I believe we have not so far as we rely on the standardise plugin to ensure that our Cubes meet a specific standard.

Originally posted by @MoseleyS in #2017 (comment)

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

No branches or pull requests

1 participant