Skip to content

Update read operator to catch erroneous grid bounds inputs#1953

Merged
David Flack (daflack) merged 5 commits into
mainfrom
1952-catch-erroneous-grid-bounds-information-when-reading-cubes
Mar 6, 2026
Merged

Update read operator to catch erroneous grid bounds inputs#1953
David Flack (daflack) merged 5 commits into
mainfrom
1952-catch-erroneous-grid-bounds-information-when-reading-cubes

Conversation

@ukmo-huw-lewis
Copy link
Copy Markdown
Contributor

@ukmo-huw-lewis ukmo-huw-lewis commented Mar 5, 2026

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

@ukmo-huw-lewis ukmo-huw-lewis linked an issue Mar 5, 2026 that may be closed by this pull request
@ukmo-huw-lewis
Copy link
Copy Markdown
Contributor Author

Example REP test with change (left = before; right = after):

image image

@ukmo-huw-lewis ukmo-huw-lewis self-assigned this Mar 5, 2026
@ukmo-huw-lewis ukmo-huw-lewis changed the title Update read.py to catch erroneous grid bounds inputs Update read operator to catch erroneous grid bounds inputs Mar 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2026

Coverage

Copy link
Copy Markdown
Collaborator

@daflack David Flack (daflack) 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. One quick question, and one suggestion to separate the test into two; otherwise happy.

Comment thread src/CSET/operators/read.py Outdated
Comment thread tests/operators/test_read.py
Copy link
Copy Markdown
Collaborator

@daflack David Flack (daflack) left a comment

Choose a reason for hiding this comment

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

Happy with changes following review. Feel free to merge when ready.

@daflack David Flack (daflack) merged commit c148845 into main Mar 6, 2026
8 checks passed
@daflack David Flack (daflack) deleted the 1952-catch-erroneous-grid-bounds-information-when-reading-cubes branch March 6, 2026 14:20
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.

Catch erroneous grid bounds information when reading cubes

2 participants