Skip to content

Conversation

ESadek-MO
Copy link
Contributor

@ESadek-MO ESadek-MO commented Apr 9, 2025

🚀 Pull Request

Description

Closes #4757, continues #6125.

This pull request aims to make MeshCoords immutable, and when it's corresponding Mesh updates, for the MeshCoord to refresh its Points, Bounds, and Metadata from the Mesh.

Notes to self
  • First problem, where node had no bounds, has been solved.
  • Next problem is that bounds aren't being rendered in the cml (and presumably, don't exist). There wasa thread to pull, in that bounds is set to an error message about bounds_dm, but it seems like that's a red herring, and is solved within __init__.
  • There's a chance this only solves another 10 or so errors, but progress is progress

@ESadek-MO ESadek-MO changed the title Make MeshCoords immutable and sync updates with it's mesh Make MeshCoords immutable and sync updates with the attached mesh Apr 9, 2025
@bjlittle bjlittle moved this from 🔖 Assigned to 🚀 In Progress in 🦋 Iris 3.13.0 May 13, 2025
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 90.65421% with 20 lines in your changes missing coverage. Please review.

Project coverage is 89.89%. Comparing base (4e92a5e) to head (3997560).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
lib/iris/mesh/components.py 90.38% 13 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6405      +/-   ##
==========================================
+ Coverage   89.88%   89.89%   +0.01%     
==========================================
  Files          90       90              
  Lines       23945    24123     +178     
  Branches     4467     4489      +22     
==========================================
+ Hits        21522    21685     +163     
- Misses       1670     1679       +9     
- Partials      753      759       +6     

☔ View full report in Codecov by Sentry.
📢 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.

@ESadek-MO ESadek-MO marked this pull request as ready for review July 1, 2025 14:09
@ESadek-MO ESadek-MO moved this from 🚀 In Progress to 👀 In Review in 🦋 Iris 3.13.0 Jul 2, 2025
Copy link
Contributor

@stephenworsley stephenworsley left a comment

Choose a reason for hiding this comment

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

Looking good! Here's some comments from the code itself, I'll go through the tests next. The timestamp stuff looks like it should do the job now, I think mostly I just have virable name and documentation quibbles.

Copy link
Contributor

@stephenworsley stephenworsley left a comment

Choose a reason for hiding this comment

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

Looking good, I believe these are the last things I can find to request changes on, after this it should be good to merge!

@pp-mo
Copy link
Member

pp-mo commented Jul 4, 2025

Thanks @ESadek-MO @stephenworsley
Just to confirm, I'm looking at this now, looks very close but I need a bit longer to think ....
Hopefully I will just merge later today.

@pp-mo pp-mo dismissed stephenworsley’s stale review July 4, 2025 14:02

I think it has now all been done

Copy link
Member

@pp-mo pp-mo left a comment

Choose a reason for hiding this comment

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

Now looking all ok

@pp-mo pp-mo merged commit 1ef8c4c into SciTools:main Jul 4, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In Review to 🏁 Done in 🦋 Iris 3.13.0 Jul 4, 2025
@scitools-ci scitools-ci bot removed this from 🚴 Peloton Aug 2, 2025
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.

Ensure MeshCoord points and bounds always agree with the Mesh (while keeping Mesh mutable)
3 participants