Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write metadata using delayed that depends on writing array(s) #388

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

joshua-gould
Copy link
Contributor

If writing a dask array and compute = False, the image metadata will be written even if some of the array chunks are not written successfully. This ensures that metadata is written only after all chunks are stored. Thanks.

@joshmoore
Copy link
Member

Thanks for the PR, @joshua-gould! Definitely agree with the goal of properly catching errors on write. 👍 There are two failures in the tests now, across a number of the jobs, related to no longer finding an image after the write, which sounds much like the metadata not being written. Did you see anything similar while preparing the change?

@joshua-gould
Copy link
Contributor Author

Sorry, I fixed the logic to invoke persist when using dask in test_write_image_dask

@joshmoore
Copy link
Member

(Launched the workflows)

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.70%. Comparing base (9205bd7) to head (6461a20).
Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
ome_zarr/writer.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #388      +/-   ##
==========================================
- Coverage   85.76%   85.70%   -0.06%     
==========================================
  Files          13       13              
  Lines        1531     1539       +8     
==========================================
+ Hits         1313     1319       +6     
- Misses        218      220       +2     

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

@joshmoore
Copy link
Member

👍

@joshmoore joshmoore merged commit 26d6413 into ome:master Jul 11, 2024
20 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