File tree Expand file tree Collapse file tree
src/torchio/transforms/preprocessing/spatial Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ structure.
4141
4242
4343.. autoclass :: ScalarImage
44+ :members:
4445
4546.. autoclass :: LabelMap
4647
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ dev = [
7575 " pre-commit-uv==4.1.4" ,
7676]
7777doc = [
78+ " distinctipy==1.3.4" ,
7879 " einops==0.8.0" ,
7980 " furo==2024.8.6" ,
8081 " matplotlib==3.9.4" ,
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments