Skip to content

feat: do not delay writing metadata - #568

Merged
will-moore merged 2 commits into
ome:masterfrom
jo-mueller:no-delay-metadata-write
Apr 13, 2026
Merged

feat: do not delay writing metadata#568
will-moore merged 2 commits into
ome:masterfrom
jo-mueller:no-delay-metadata-write

Conversation

@jo-mueller

Copy link
Copy Markdown
Collaborator

@will-moore Another small PR in the wake of #515 :) I realized that some tests were failing there for an unrelated reason: In #515, I use the existing code in _write_pyramid_to_zarr to write the metadata, but it's effectively later overwritten by the metadata dump from the ome-zarr-models-py classes.

However, if writing the metadata is delayed inside the _write_pyramid_to_zarr function, it will overwrite the metadata dump from ozmp 🤦‍♂️ . Simple fix: I am chosing to always write metadata right away here. The performance-impact of writing a bit of json should be manageable.

It's not strictly related to #515 so I'm sending it as a breakout-PR.

@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.01%. Comparing base (cade24e) to head (9dd729b).
⚠️ Report is 230 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
- Coverage   86.05%   86.01%   -0.04%     
==========================================
  Files          14       14              
  Lines        1857     1852       -5     
==========================================
- Hits         1598     1593       -5     
  Misses        259      259              

☔ 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.

@jo-mueller
jo-mueller requested a review from will-moore April 10, 2026 12:54
@will-moore

Copy link
Copy Markdown
Member

Looks good. Do we care whether this gets merged before / after #515?

@jo-mueller

Copy link
Copy Markdown
Collaborator Author

It's already part of #515, so merging this ahead will make review there a wee bit easier.

@will-moore will-moore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, tests green etc.

@will-moore
will-moore merged commit c542100 into ome:master Apr 13, 2026
13 checks passed
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.

2 participants