Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix bug with mesh indexing for start_index=1 - #7253

Merged
trexfeathers merged 5 commits into
SciTools:mainfrom
stephenworsley:MeshIndexSet-start_index-bug
Aug 20, 2026
Merged

Fix bug with mesh indexing for start_index=1#7253
trexfeathers merged 5 commits into
SciTools:mainfrom
stephenworsley:MeshIndexSet-start_index-bug

Conversation

@stephenworsley

@stephenworsley stephenworsley commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Closes #7246.

This ought to fix the problems with face_node_connectivities in #7246, but won't yet address the other connectivities (it might be worth just throwing away these connectivities from the returned MeshIndexSet for the time being). This PR seems to work with the file in #7246 when I experimented with it locally, but this PR will want a bit more testing to ensure coverage for these cases.

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.42%. Comparing base (c13dac8) to head (7be1b0c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7253   +/-   ##
=======================================
  Coverage   90.42%   90.42%           
=======================================
  Files          93       93           
  Lines       25812    25816    +4     
  Branches     4795     4796    +1     
=======================================
+ Hits        23340    23344    +4     
  Misses       1693     1693           
  Partials      779      779           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephenworsley
stephenworsley marked this pull request as ready for review August 20, 2026 12:38

@trexfeathers trexfeathers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @stephenworsley. I have confirmed that this fixes the problems reported in #7246 (and without it I can replicate those problems).

Couple of comments on the tests for you

Comment thread lib/iris/tests/integration/mesh/test_indexing_meshes.py
Comment thread lib/iris/tests/integration/mesh/test_indexing_meshes.py
@trexfeathers
trexfeathers merged commit cefe4b7 into SciTools:main Aug 20, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Real world Mesh is not indexable using Iris

2 participants