Skip to content

Commit 061a1a7

Browse files
committed
update docs to zarr3
1 parent 11d1cd1 commit 061a1a7

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/publish-docs.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ jobs:
2424

2525
- uses: conda-incubator/setup-miniconda@v2
2626
with:
27-
python-version: "3.11"
27+
python-version: "3.12"
2828
mamba-version: "*"
2929
channels: conda-forge
3030
channel-priority: true
3131

3232
- name: Install package and dependencies
33-
run: |
34-
pip install git+https://github.com/funkelab/funlib.learn.torch
35-
python -m pip install --group docs -e .
33+
run: python -m pip install --group docs -e .
3634

3735
- name: Build documentation
3836
run: sphinx-build docs/source docs/build/html -b html

docs/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717
# documentation root, use os.path.abspath to make it absolute, like shown here.
1818
#
1919

20+
import tomllib
2021
from datetime import datetime
2122

22-
import tomli # ty: ignore[unresolved-import]
23-
2423
import gunpowder
2524

2625
with open("../../pyproject.toml", "rb") as fh:
27-
project = tomli.load(fh)["project"]
26+
project = tomllib.load(fh)["project"]
2827

2928
author_list = ", ".join([author["name"] for author in project["authors"]])
3029

docs/source/tutorial_simple_pipeline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ node with its equivalent :class:`torch.Predict`.
681681

682682
# prepare the zarr dataset to write to
683683
f = zarr.open('sample_data.zarr')
684-
ds = f.create_dataset('prediction', shape=(1, 1, 512, 512))
684+
ds = f.create_array('prediction', shape=(1, 1, 512, 512), dtype='float32')
685685
ds.attrs['resolution'] = (1, 1)
686686
ds.attrs['offset'] = (0, 0)
687687

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ docs = [
7979
"sphinx>=7.4.7",
8080
"sphinx-rtd-theme>=3.1.0",
8181
"sphinx-togglebutton>=0.4.4",
82-
"tomli>=2.4.0",
8382
"torch>=2.8.0",
83+
"funlib.learn.torch @ git+https://github.com/funkelab/funlib.learn.torch",
8484
]
8585

8686

0 commit comments

Comments
 (0)