napari / napari

napari: a fast, interactive, multi-dimensional image viewer for python
https://napari.org
BSD 3-Clause "New" or "Revised" License
2.07k stars 410 forks source link

Fix zarr reading with unrelated files #6857

Closed imagejan closed 2 weeks ago

imagejan commented 4 weeks ago

Also add a test reading a zarr dataset that contains an unrelated file.

References and relevant issues

Closes #6850.

Description

This PR implements the fix suggested by @jni in https://github.com/napari/napari/issues/6850#issuecomment-2062805100, including changes from os.path to pathlib.Path.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.39%. Comparing base (01062f8) to head (2f0b7b1). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6857 +/- ## ========================================== - Coverage 92.45% 92.39% -0.06% ========================================== Files 614 614 Lines 54855 54866 +11 ========================================== - Hits 50714 50696 -18 - Misses 4141 4170 +29 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.