Skip to content

Commit eabf638

Browse files
committed
Fix errors
1 parent b951c26 commit eabf638

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,32 @@ jobs:
2626
- name: Install just
2727
uses: extractions/setup-just@v3
2828

29+
- name: Restore TorchIO cached data
30+
id: cache-torchio-data-restore
31+
uses: actions/cache/restore@v4
32+
with:
33+
path: ~/.cache/torchio
34+
key: ${{ runner.os }}-torchio-data
35+
2936
- name: Build docs
30-
run: just build-docs
37+
run: just build-docs && ls ~/.cache/torchio
38+
39+
- name: Save TorchIO cached data
40+
id: cache-torchio-data-save
41+
uses: actions/cache@v4
42+
with:
43+
path: ~/.cache/torchio
44+
key: ${{ steps.cache-torchio-data-restore.outputs.cache-primary-key }}
3145

46+
# Uploade to smokeshow if not on main branch
3247
- name: Upload docs to smokeshow
3348
if: github.ref != 'refs/heads/main'
3449
run: |
3550
rm ./docs/build/html/_images/*.gif
3651
rm ./docs/build/html/_images/*.png
3752
uvx smokeshow upload ./docs/build/html
3853
54+
# Upload to GitHub Pages if on main branch
3955
- name: Upload artifacts using actions/upload-pages-artifact
4056
if: github.ref == 'refs/heads/main'
4157
id: deployment

docs/source/data/image.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ structure.
4141

4242

4343
.. autoclass:: ScalarImage
44+
:members:
4445

4546
.. autoclass:: LabelMap
4647

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ dev = [
7575
"pre-commit-uv==4.1.4",
7676
]
7777
doc = [
78+
"distinctipy==1.3.4",
7879
"einops==0.8.0",
7980
"furo==2024.8.6",
8081
"matplotlib==3.9.4",

src/torchio/transforms/preprocessing/spatial/to_canonical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ class ToCanonical(ToOrientation):
2424
"""
2525

2626
def __init__(self, **kwargs):
27-
super().__init__('RAS', **kwargs)
27+
super().__init__(orientation='RAS', **kwargs)

0 commit comments

Comments
 (0)