Skip to content

Commit bb2d44c

Browse files
authored
(fix): update zarr bound (#1993)
1 parent ec65081 commit bb2d44c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ def setup(app: Sphinx):
112112
python=("https://docs.python.org/3", None),
113113
scipy=("https://docs.scipy.org/doc/scipy", None),
114114
sklearn=("https://scikit-learn.org/stable", None),
115-
# TODO: move back to stable once `ObjectStore` is released
116-
zarr=("https://zarr.readthedocs.io/en/latest/", None),
115+
zarr=("https://zarr.readthedocs.io/en/stable/", None),
117116
xarray=("https://docs.xarray.dev/en/stable", None),
118117
obstore=("https://developmentseed.org/obstore/latest/", None),
119118
kvikio=("https://docs.rapids.ai/api/kvikio/stable/", None),

docs/tutorials/notebooks

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies = [
4646
"packaging>=24.2",
4747
"array_api_compat>=1.7.1",
4848
"legacy-api-wrap",
49-
"zarr >=2.18.7, !=3.0.0, !=3.0.1, !=3.0.2, !=3.0.3, <3.0.7",
49+
"zarr >=2.18.7, !=3.0.0, !=3.0.1, !=3.0.2, !=3.0.3, !=3.0.4, !=3.0.5, !=3.0.6, !=3.0.7",
5050
]
5151
dynamic = [ "version" ]
5252

src/anndata/_io/zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def read_dataset(dataset: zarr.Array):
141141
elif len(value.dtype.descr) > 1: # Compound dtype
142142
# For backwards compat, now strings are written as variable length
143143
value = _from_fixed_length_strings(value)
144-
if value.shape == ():
144+
if value.shape == () and not np.isscalar(value):
145145
value = value[()]
146146
return value
147147

0 commit comments

Comments
 (0)