Skip to content

Commit

Permalink
Almost fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Jan 14, 2025
1 parent f9830ae commit f1ca6f7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def setup(app: Sphinx):
python=("https://docs.python.org/3", None),
scipy=("https://docs.scipy.org/doc/scipy", None),
sklearn=("https://scikit-learn.org/stable", None),
zarr=("https://zarr.readthedocs.io/en/v2.18.4/", None),
zarr=("https://zarr.readthedocs.io/en/stable/", None),
xarray=("https://docs.xarray.dev/en/stable", None),
dask=("https://docs.dask.org/en/stable", None),
)
Expand All @@ -145,6 +145,8 @@ def setup(app: Sphinx):
"anndata._types.WriteCallback": "anndata.experimental.WriteCallback",
"anndata._types.Read": "anndata.experimental.Read",
"anndata._types.Write": "anndata.experimental.Write",
"zarr.core.array.Array": "zarr.Array",
"zarr.core.group.Group": "zarr.Group",
}
autodoc_type_aliases = dict(
NDArray=":data:`~numpy.typing.NDArray`",
Expand Down
2 changes: 1 addition & 1 deletion docs/fileformat-prose.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Using this information, we're able to dispatch onto readers for the different el
## Dense arrays

Dense numeric arrays have the most simple representation on disk,
as they have native equivalents in H5py {doc}`h5py:high/dataset` and Zarr {ref}`Arrays <zarr:tutorial_create>`.
as they have native equivalents in H5py {doc}`h5py:high/dataset` and Zarr {doc}`Arrays <zarr:user-guide/arrays>`.
We can see an example of this with dimensionality reductions stored in the `obsm` group:

`````{tab-set}
Expand Down
2 changes: 1 addition & 1 deletion src/anndata/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def to_memory(self) -> csr_matrix | csc_matrix | SpArray:
_sparse_dataset_doc = """\
On disk {format} sparse matrix.
Analogous to :class:`h5py.Dataset` or :class:`zarr.core.Array`, but for sparse matrices.
Analogous to :class:`h5py.Dataset` or :class:`zarr.Array`, but for sparse matrices.
"""


Expand Down
4 changes: 2 additions & 2 deletions src/anndata/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ def __exit__(self, *_exc_info) -> None:
class ZarrArray:
@staticmethod
def __repr__():
return "mock zarr.core.Array"
return "mock zarr.Array"

Check warning on line 101 in src/anndata/compat/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/anndata/compat/__init__.py#L101

Added line #L101 was not covered by tests

class ZarrGroup:
@staticmethod
def __repr__():
return "mock zarr.core.Group"
return "mock zarr.Group"

Check warning on line 106 in src/anndata/compat/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/anndata/compat/__init__.py#L106

Added line #L106 was not covered by tests


@cache
Expand Down

0 comments on commit f1ca6f7

Please sign in to comment.