spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

Change: fixed the read_zarr function for zarr.Group objects

Open DiDeoxy opened this issue 5 months ago • 1 comments

The spatial_data.read_zarr function raises an error when trying to read a Group from zarr version 2.18.7 as it tries to turn the Group into a Path object directly when Group is not a PathLike object. This adds a check to prevent this bug.

DiDeoxy avatar Jul 29 '25 20:07 DiDeoxy

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 92.39%. Comparing base (7604a3d) to head (b22de3f). :warning: Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #962      +/-   ##
==========================================
+ Coverage   92.14%   92.39%   +0.24%     
==========================================
  Files          48       48              
  Lines        7473     7440      -33     
==========================================
- Hits         6886     6874      -12     
+ Misses        587      566      -21     
Files with missing lines Coverage Δ
src/spatialdata/_io/io_zarr.py 88.46% <100.00%> (ø)

... and 11 files with indirect coverage changes

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

codecov[bot] avatar Jul 29 '25 20:07 codecov[bot]