Skip to content

Commit 4c193ea

Browse files
authored
Fix itk install error when python=3.8 (#7719)
Fixes #7716 set python 3.9 for pythonapp.yml ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent 6a130cc commit 4c193ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pythonapp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ jobs:
7070
maximum-size: 16GB
7171
disk-root: "D:"
7272
- uses: actions/checkout@v4
73-
- name: Set up Python 3.8
73+
- name: Set up Python 3.9
7474
uses: actions/setup-python@v5
7575
with:
76-
python-version: '3.8'
76+
python-version: '3.9'
7777
- name: Prepare pip wheel
7878
run: |
7979
which python

tests/test_clip_intensity_percentilesd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_channel_wise(self, p):
9696
for i, c in enumerate(im):
9797
lower, upper = percentile(c, (5, 95))
9898
expected = clip(c, lower, upper)
99-
assert_allclose(result[key][i], p(expected), type_test="tensor", rtol=1e-4, atol=0)
99+
assert_allclose(result[key][i], p(expected), type_test="tensor", rtol=1e-3, atol=0)
100100

101101
def test_ill_sharpness_factor(self):
102102
key = "img"

0 commit comments

Comments
 (0)