Skip to content

Conversation

@david-sh-csiro
Copy link
Collaborator

  • Added more error resistant way of accessing the standard_name attribute for a variable.
  • Added basic unit test to check for the error case. (currently the order of the variables in the test dataset is sufficient to raise the error without the fix)

…kup when standard names are missing for variable attributes.
…se and error when there is a missing variable standard name.
Copy link
Contributor

@mx-moth mx-moth left a comment

Choose a reason for hiding this comment

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

Looks good!

The test failures are only on the latest dependencies test suite, and are to do with a warning that is no longer raised. It can be ignored, that error can be fixed in a different pull request.

@mx-moth mx-moth merged commit ade7bf4 into main Aug 18, 2025
13 of 15 checks passed
@mx-moth mx-moth deleted the 178-shocsimpletopology-can-raise-an-error-on-variables-without-a-standard_name branch August 18, 2025 00:35
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.

ShocSimple.topology can raise an error on variables without a standard_name

3 participants