Skip to content

Commit 755a808

Browse files
authored
Merge branch 'main' into add-smokeshow-coverage
2 parents e59532b + f8638f3 commit 755a808

43 files changed

Lines changed: 372 additions & 190 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.all-contributorsrcβ€Ž

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"ideas",
2525
"review",
2626
"code",
27-
"question"
27+
"question",
28+
"bug"
2829
]
2930
},
3031
{
@@ -647,7 +648,8 @@
647648
"avatar_url": "https://avatars.githubusercontent.com/u/56117447?v=4",
648649
"profile": "https://github.com/mueller-franzes",
649650
"contributions": [
650-
"code"
651+
"code",
652+
"bug"
651653
]
652654
},
653655
{
@@ -684,7 +686,8 @@
684686
"avatar_url": "https://avatars.githubusercontent.com/u/70891565?v=4",
685687
"profile": "https://github.com/nicoloesch",
686688
"contributions": [
687-
"code"
689+
"code",
690+
"bug"
688691
]
689692
},
690693
{
@@ -722,6 +725,69 @@
722725
"contributions": [
723726
"bug"
724727
]
728+
},
729+
{
730+
"login": "blakedewey",
731+
"name": "Blake Dewey",
732+
"avatar_url": "https://avatars.githubusercontent.com/u/4713571?v=4",
733+
"profile": "https://github.com/blakedewey",
734+
"contributions": [
735+
"doc"
736+
]
737+
},
738+
{
739+
"login": "haughty-yeon",
740+
"name": "Doyeon Kim",
741+
"avatar_url": "https://avatars.githubusercontent.com/u/84639487?v=4",
742+
"profile": "https://github.com/haughty-yeon",
743+
"contributions": [
744+
"bug"
745+
]
746+
},
747+
{
748+
"login": "KonoMaxi",
749+
"name": "KonoMaxi",
750+
"avatar_url": "https://avatars.githubusercontent.com/u/13138999?v=4",
751+
"profile": "https://github.com/KonoMaxi",
752+
"contributions": [
753+
"bug"
754+
]
755+
},
756+
{
757+
"login": "lchauvin",
758+
"name": "Laurent Chauvin",
759+
"avatar_url": "https://avatars.githubusercontent.com/u/1707237?v=4",
760+
"profile": "http://www.etsmtl.ca",
761+
"contributions": [
762+
"bug"
763+
]
764+
},
765+
{
766+
"login": "ChristianHinge",
767+
"name": "Christian Hinge",
768+
"avatar_url": "https://avatars.githubusercontent.com/u/17361630?v=4",
769+
"profile": "http://christianhinge.com",
770+
"contributions": [
771+
"bug"
772+
]
773+
},
774+
{
775+
"login": "zzz123xyz",
776+
"name": "zzz123xyz",
777+
"avatar_url": "https://avatars.githubusercontent.com/u/2671968?v=4",
778+
"profile": "https://github.com/zzz123xyz",
779+
"contributions": [
780+
"bug"
781+
]
782+
},
783+
{
784+
"login": "AminAlam",
785+
"name": "Amin Alam",
786+
"avatar_url": "https://avatars.githubusercontent.com/u/50844047?v=4",
787+
"profile": "http://aminalam.info",
788+
"contributions": [
789+
"doc"
790+
]
725791
}
726792
],
727793
"contributorsPerLine": 7,

β€Ž.bumpversion.cfgβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.18.92
2+
current_version = 0.19.6
33
commit = True
44
tag = True
55

β€Ž.github/workflows/code_quality.ymlβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
steps:
1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: "3.11"
2222

2323
- name: Checkout repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
2727

@@ -37,12 +37,12 @@ jobs:
3737

3838
steps:
3939
- name: Set up Python
40-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@v5
4141
with:
4242
python-version: "3.11"
4343

4444
- name: Checkout repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646
with:
4747
fetch-depth: 0
4848

@@ -58,12 +58,12 @@ jobs:
5858

5959
steps:
6060
- name: Set up Python
61-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@v5
6262
with:
6363
python-version: "3.11"
6464

6565
- name: Checkout repository
66-
uses: actions/checkout@v3
66+
uses: actions/checkout@v4
6767
with:
6868
fetch-depth: 0
6969

@@ -79,12 +79,12 @@ jobs:
7979

8080
steps:
8181
- name: Set up Python
82-
uses: actions/setup-python@v4
82+
uses: actions/setup-python@v5
8383
with:
8484
python-version: "3.11"
8585

8686
- name: Checkout repository
87-
uses: actions/checkout@v3
87+
uses: actions/checkout@v4
8888
with:
8989
fetch-depth: 0
9090

β€Ž.github/workflows/publish.ymlβ€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ name: Publish
44

55
on: push
66

7+
# https://github.com/fepegar/torchio/actions/runs/6076955855/job/17283217522?pr=1103
8+
permissions:
9+
id-token: write
10+
711
jobs:
812
Build-and-publish:
913
name: Build and publish if needed
1014
runs-on: ubuntu-latest
1115

1216
steps:
13-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1418

1519
- name: Set up Python 3.11
16-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
1721
with:
1822
python-version: "3.11"
1923

@@ -38,9 +42,9 @@ jobs:
3842
with:
3943
user: __token__
4044
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
41-
repository_url: https://test.pypi.org/legacy/
45+
repository-url: https://test.pypi.org/legacy/
4246
verbose: true
43-
skip_existing: true
47+
skip-existing: true
4448

4549
# Publish only tagged commits
4650
- name: Publish package to PyPI, if tagged

β€Ž.github/workflows/tests.ymlβ€Ž

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
17-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
18-
exclude:
19-
- os: macos-latest
20-
python-version: '3.7'
17+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
18+
exclude: # run only latest Python on Windows and macOS
2119
- os: macos-latest
2220
python-version: '3.8'
2321
- os: macos-latest
2422
python-version: '3.9'
23+
- os: macos-latest
24+
python-version: '3.10'
2525
- os: macos-latest
2626
python-version: '3.11'
2727

28-
- os: windows-latest
29-
python-version: '3.7'
3028
- os: windows-latest
3129
python-version: '3.8'
3230
- os: windows-latest
@@ -43,22 +41,30 @@ jobs:
4341

4442
steps:
4543
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v5
4745
with:
4846
python-version: ${{ matrix.python-version }}
4947

5048
- name: Checkout repository
51-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5250
with:
5351
fetch-depth: 0
5452

5553
- name: Install tox
5654
run: pip install tox
5755

56+
# Run all tests on schedule, but only non-slow tests on push
5857
- name: Run unit tests
59-
run: tox -e py
58+
run: |
59+
if [ "${{ github.event_name }}" == "schedule" ]; then
60+
tox -e py
61+
else
62+
tox -e py -- -m "not slow"
63+
fi
64+
shell: bash # so it doesn't fail on Windows
6065

6166
- name: Upload coverage reports to Codecov
67+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
6268
run: |
6369
OS_LOWERCASE=$(echo $RUNNER_OS | tr '[:upper:]' '[:lower:]')
6470
curl -Os https://uploader.codecov.io/latest/${OS_LOWERCASE}/codecov
@@ -68,15 +74,17 @@ jobs:
6874
cli:
6975
name: CLI smoke tests
7076
runs-on: ubuntu-latest
77+
env:
78+
PYTHON_VERSION: '3.12'
7179

7280
steps:
7381
- name: Set up Python
74-
uses: actions/setup-python@v4
82+
uses: actions/setup-python@v5
7583
with:
76-
python-version: "3.11"
84+
python-version: ${{ env.PYTHON_VERSION }}
7785

7886
- name: Checkout repository
79-
uses: actions/checkout@v3
87+
uses: actions/checkout@v4
8088
with:
8189
fetch-depth: 0
8290

β€Ž.pre-commit-config.yamlβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.6.0
66
hooks:
77
- id: check-ast # Simply check whether the files parse as valid python
88
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
@@ -21,12 +21,12 @@ repos:
2121
exclude: setup.cfg
2222

2323
- repo: https://github.com/psf/black
24-
rev: 23.3.0
24+
rev: 24.4.2
2525
hooks:
2626
- id: black
2727

2828
- repo: https://github.com/pycqa/flake8
29-
rev: 6.0.0
29+
rev: 7.0.0
3030
hooks:
3131
- id: flake8
3232
additional_dependencies: [
@@ -55,13 +55,13 @@ repos:
5555
- id: rst-inline-touching-normal # detect mistake of inline code touching normal text in rst
5656

5757
- repo: https://github.com/asottile/pyupgrade
58-
rev: v3.6.0
58+
rev: v3.15.2
5959
hooks:
6060
- id: pyupgrade
61-
args: ['--py37-plus', '--keep-runtime-typing']
61+
args: ['--py38-plus', '--keep-runtime-typing']
6262

6363
- repo: https://github.com/asottile/setup-cfg-fmt
64-
rev: v2.3.0
64+
rev: v2.5.0
6565
hooks:
6666
- id: setup-cfg-fmt
6767
args: ['--include-version-classifiers']
@@ -72,7 +72,7 @@ repos:
7272
- id: doc8
7373

7474
- repo: https://github.com/PyCQA/docformatter
75-
rev: v1.7.2
75+
rev: v1.7.5
7676
hooks:
7777
- id: docformatter
7878

β€Ž.readthedocs.ymlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ formats:
1515
- htmlzip
1616
- pdf
1717

18+
build:
19+
os: ubuntu-22.04
20+
tools:
21+
python: "3.11"
22+
1823
python:
1924
install:
2025
- method: pip

β€ŽREADME.mdβ€Ž

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Thanks goes to all these people ([emoji key](https://allcontributors.org/docs/en
298298
<tbody>
299299
<tr>
300300
<td align="center" valign="top" width="14.28%"><a href="https://github.com/fepegar"><img src="https://avatars1.githubusercontent.com/u/12688084?v=4?s=100" width="100px;" alt="Fernando PΓ©rez-GarcΓ­a"/><br /><sub><b>Fernando PΓ©rez-GarcΓ­a</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=fepegar" title="Code">πŸ’»</a> <a href="https://github.com/fepegar/torchio/commits?author=fepegar" title="Documentation">πŸ“–</a></td>
301-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/romainVala"><img src="https://avatars1.githubusercontent.com/u/5611962?v=4?s=100" width="100px;" alt="valabregue"/><br /><sub><b>valabregue</b></sub></a><br /><a href="#ideas-romainVala" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="https://github.com/fepegar/torchio/pulls?q=is%3Apr+reviewed-by%3AromainVala" title="Reviewed Pull Requests">πŸ‘€</a> <a href="https://github.com/fepegar/torchio/commits?author=romainVala" title="Code">πŸ’»</a> <a href="#question-romainVala" title="Answering Questions">πŸ’¬</a></td>
301+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/romainVala"><img src="https://avatars1.githubusercontent.com/u/5611962?v=4?s=100" width="100px;" alt="valabregue"/><br /><sub><b>valabregue</b></sub></a><br /><a href="#ideas-romainVala" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="https://github.com/fepegar/torchio/pulls?q=is%3Apr+reviewed-by%3AromainVala" title="Reviewed Pull Requests">πŸ‘€</a> <a href="https://github.com/fepegar/torchio/commits?author=romainVala" title="Code">πŸ’»</a> <a href="#question-romainVala" title="Answering Questions">πŸ’¬</a> <a href="https://github.com/fepegar/torchio/issues?q=author%3AromainVala" title="Bug reports">πŸ›</a></td>
302302
<td align="center" valign="top" width="14.28%"><a href="https://github.com/GFabien"><img src="https://avatars1.githubusercontent.com/u/39873986?v=4?s=100" width="100px;" alt="GFabien"/><br /><sub><b>GFabien</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=GFabien" title="Code">πŸ’»</a> <a href="https://github.com/fepegar/torchio/pulls?q=is%3Apr+reviewed-by%3AGFabien" title="Reviewed Pull Requests">πŸ‘€</a> <a href="#ideas-GFabien" title="Ideas, Planning, & Feedback">πŸ€”</a></td>
303303
<td align="center" valign="top" width="14.28%"><a href="https://github.com/GReguig"><img src="https://avatars1.githubusercontent.com/u/11228281?v=4?s=100" width="100px;" alt="G.Reguig"/><br /><sub><b>G.Reguig</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=GReguig" title="Code">πŸ’»</a></td>
304304
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nwschurink"><img src="https://avatars3.githubusercontent.com/u/12720130?v=4?s=100" width="100px;" alt="Niels Schurink"/><br /><sub><b>Niels Schurink</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=nwschurink" title="Code">πŸ’»</a></td>
@@ -383,18 +383,27 @@ Thanks goes to all these people ([emoji key](https://allcontributors.org/docs/en
383383
<td align="center" valign="top" width="14.28%"><a href="https://yanivresearch.info/"><img src="https://avatars.githubusercontent.com/u/338645?v=4?s=100" width="100px;" alt="Ziv Yaniv"/><br /><sub><b>Ziv Yaniv</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=zivy" title="Documentation">πŸ“–</a></td>
384384
<td align="center" valign="top" width="14.28%"><a href="https://github.com/LucaLumetti"><img src="https://avatars.githubusercontent.com/u/7543386?v=4?s=100" width="100px;" alt="Luca Lumetti"/><br /><sub><b>Luca Lumetti</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=LucaLumetti" title="Code">πŸ’»</a> <a href="https://github.com/fepegar/torchio/commits?author=LucaLumetti" title="Documentation">πŸ“–</a></td>
385385
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chagelo"><img src="https://avatars.githubusercontent.com/u/49865033?v=4?s=100" width="100px;" alt="chagelo"/><br /><sub><b>chagelo</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Achagelo" title="Bug reports">πŸ›</a></td>
386-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/mueller-franzes"><img src="https://avatars.githubusercontent.com/u/56117447?v=4?s=100" width="100px;" alt="mueller-franzes"/><br /><sub><b>mueller-franzes</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=mueller-franzes" title="Code">πŸ’»</a></td>
386+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/mueller-franzes"><img src="https://avatars.githubusercontent.com/u/56117447?v=4?s=100" width="100px;" alt="mueller-franzes"/><br /><sub><b>mueller-franzes</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=mueller-franzes" title="Code">πŸ’»</a> <a href="https://github.com/fepegar/torchio/issues?q=author%3Amueller-franzes" title="Bug reports">πŸ›</a></td>
387387
<td align="center" valign="top" width="14.28%"><a href="https://github.com/wahabk"><img src="https://avatars.githubusercontent.com/u/43846328?v=4?s=100" width="100px;" alt="Abdelwahab Kawafi"/><br /><sub><b>Abdelwahab Kawafi</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Awahabk" title="Bug reports">πŸ›</a></td>
388388
</tr>
389389
<tr>
390390
<td align="center" valign="top" width="14.28%"><a href="http://arthurmasson.xyz"><img src="https://avatars.githubusercontent.com/u/1814799?v=4?s=100" width="100px;" alt="Arthur Masson"/><br /><sub><b>Arthur Masson</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Aarthursw" title="Bug reports">πŸ›</a> <a href="https://github.com/fepegar/torchio/commits?author=arthursw" title="Documentation">πŸ“–</a></td>
391391
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hsyang1222"><img src="https://avatars.githubusercontent.com/u/79962117?v=4?s=100" width="100px;" alt="μ–‘ν˜„μ‹"/><br /><sub><b>μ–‘ν˜„μ‹</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=hsyang1222" title="Code">πŸ’»</a></td>
392-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nicoloesch"><img src="https://avatars.githubusercontent.com/u/70891565?v=4?s=100" width="100px;" alt="nicoloesch"/><br /><sub><b>nicoloesch</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=nicoloesch" title="Code">πŸ’»</a></td>
392+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nicoloesch"><img src="https://avatars.githubusercontent.com/u/70891565?v=4?s=100" width="100px;" alt="nicoloesch"/><br /><sub><b>nicoloesch</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=nicoloesch" title="Code">πŸ’»</a> <a href="https://github.com/fepegar/torchio/issues?q=author%3Anicoloesch" title="Bug reports">πŸ›</a></td>
393393
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vedal"><img src="https://avatars.githubusercontent.com/u/22004000?v=4?s=100" width="100px;" alt="Amund Vedal"/><br /><sub><b>Amund Vedal</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=vedal" title="Documentation">πŸ“–</a></td>
394394
<td align="center" valign="top" width="14.28%"><a href="https://github.com/alabamagan"><img src="https://avatars.githubusercontent.com/u/11690091?v=4?s=100" width="100px;" alt="Alabamagan"/><br /><sub><b>Alabamagan</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Aalabamagan" title="Bug reports">πŸ›</a></td>
395395
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sbdoherty"><img src="https://avatars.githubusercontent.com/u/46537211?v=4?s=100" width="100px;" alt="sbdoherty"/><br /><sub><b>sbdoherty</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=sbdoherty" title="Documentation">πŸ“–</a></td>
396396
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Zhack47"><img src="https://avatars.githubusercontent.com/u/54006084?v=4?s=100" width="100px;" alt="Zhack47"/><br /><sub><b>Zhack47</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3AZhack47" title="Bug reports">πŸ›</a></td>
397397
</tr>
398+
<tr>
399+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/blakedewey"><img src="https://avatars.githubusercontent.com/u/4713571?v=4?s=100" width="100px;" alt="Blake Dewey"/><br /><sub><b>Blake Dewey</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=blakedewey" title="Documentation">πŸ“–</a></td>
400+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/haughty-yeon"><img src="https://avatars.githubusercontent.com/u/84639487?v=4?s=100" width="100px;" alt="Doyeon Kim"/><br /><sub><b>Doyeon Kim</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Ahaughty-yeon" title="Bug reports">πŸ›</a></td>
401+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/KonoMaxi"><img src="https://avatars.githubusercontent.com/u/13138999?v=4?s=100" width="100px;" alt="KonoMaxi"/><br /><sub><b>KonoMaxi</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3AKonoMaxi" title="Bug reports">πŸ›</a></td>
402+
<td align="center" valign="top" width="14.28%"><a href="http://www.etsmtl.ca"><img src="https://avatars.githubusercontent.com/u/1707237?v=4?s=100" width="100px;" alt="Laurent Chauvin"/><br /><sub><b>Laurent Chauvin</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Alchauvin" title="Bug reports">πŸ›</a></td>
403+
<td align="center" valign="top" width="14.28%"><a href="http://christianhinge.com"><img src="https://avatars.githubusercontent.com/u/17361630?v=4?s=100" width="100px;" alt="Christian Hinge"/><br /><sub><b>Christian Hinge</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3AChristianHinge" title="Bug reports">πŸ›</a></td>
404+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/zzz123xyz"><img src="https://avatars.githubusercontent.com/u/2671968?v=4?s=100" width="100px;" alt="zzz123xyz"/><br /><sub><b>zzz123xyz</b></sub></a><br /><a href="https://github.com/fepegar/torchio/issues?q=author%3Azzz123xyz" title="Bug reports">πŸ›</a></td>
405+
<td align="center" valign="top" width="14.28%"><a href="http://aminalam.info"><img src="https://avatars.githubusercontent.com/u/50844047?v=4?s=100" width="100px;" alt="Amin Alam"/><br /><sub><b>Amin Alam</b></sub></a><br /><a href="https://github.com/fepegar/torchio/commits?author=AminAlam" title="Documentation">πŸ“–</a></td>
406+
</tr>
398407
</tbody>
399408
</table>
400409

β€Ždocs/examples/plot_3d_to_2d.pyβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
In this example, volumes are padded, scaled, rotated and sometimes flipped.
66
Then, 2D slices are extracted.
77
"""
8+
89
import matplotlib.pyplot as plt
910
import torch
1011
import torchio as tio

β€Ždocs/examples/plot_colin27.pyβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
Use :meth:`torchio.Subject.plot` to plot the images within a subject.
66
"""
7+
78
import torchio as tio
89

910
tio.datasets.Colin27().plot()

0 commit comments

Comments
Β (0)