Skip to content

Commit d0e394c

Browse files
authored
Merge pull request #445 from Dana-Farber-AIOS/dev
v 3.0.1. PyTorch changes.
2 parents 850748f + a6e1714 commit d0e394c

File tree

8 files changed

+29
-17
lines changed

8 files changed

+29
-17
lines changed

.github/workflows/tests-linux.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
max-parallel: 5
1919
matrix:
20-
python-version: ["3.8", "3.9", "3.10"]
20+
python-version: ["3.9", "3.10"]
2121
timeout-minutes: 60 # add a timeout
2222

2323
steps:
@@ -83,14 +83,27 @@ jobs:
8383
sudo df -h
8484
sudo du -h
8585
86+
# - name: free disk space
87+
# run: |
88+
# sudo swapoff -a
89+
# sudo rm -f /swapfile
90+
# sudo apt clean
91+
# docker rmi $(docker image ls -aq)
92+
# sudo df -h
93+
# sudo du -h
94+
8695
- name: free disk space
8796
run: |
8897
sudo swapoff -a
8998
sudo rm -f /swapfile
90-
sudo apt clean
91-
docker rmi $(docker image ls -aq)
92-
sudo df -h
93-
sudo du -h
99+
sudo apt-get clean
100+
if [ "$(docker image ls -aq)" ]; then
101+
docker rmi $(docker image ls -aq)
102+
else
103+
echo "No Docker images to remove."
104+
fi
105+
sudo df -h
106+
sudo du -h
94107
95108
# - name: Check Coverage Command
96109
# run: |

.github/workflows/tests-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
max-parallel: 5
1919
matrix:
20-
python-version: ["3.8", "3.9", "3.10"]
20+
python-version: [ "3.9", "3.10"]
2121
timeout-minutes: 120
2222

2323
steps:

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ channels:
66

77
dependencies:
88
- python<=3.10
9-
- pip==23.3.2
9+
- pip==25.0.1
1010
- numpy==1.23.5
1111
- scipy<=1.11.4
1212
- scikit-image<=0.22.0

pathml/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
License: GNU GPL 2.0
44
"""
55

6-
__version__ = "3.0.0"
6+
__version__ = "3.0.1"

requirements/environment_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ channels:
66

77
dependencies:
88
- python<=3.10
9-
- pip==23.3.2
9+
- pip==25.0.1
1010
- numpy==1.23.5
1111
- scipy<=1.11.4
1212
- scikit-image<=0.22.0
1313
- matplotlib<=3.8.2
1414
- openjdk<=18.0.0
15-
- pytorch==1.13.1
15+
- pytorch==2.6.0
1616
- h5py==3.10.0
1717
- dask<=2023.12.1
1818
- pydicom==2.4.4

requirements/requirements_torch.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
--extra-index-url https://download.pytorch.org/whl/cu116
2-
torch==1.13.1+cu116
1+
torch==2.6.0

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
version = about["__version__"]
1212

13-
dependency_links = ["https://download.pytorch.org/whl/cu116"]
13+
dependency_links = ["https://download.pytorch.org/whl/cu124"]
1414

1515
setuptools.setup(
1616
name="pathml",
@@ -40,7 +40,7 @@
4040
"dask[distributed]",
4141
"anndata>=0.7.6",
4242
"scanpy==1.9.6",
43-
"torch==1.13.1",
43+
"torch==2.6.0",
4444
"opencv-contrib-python==4.8.1.78",
4545
"python-bioformats==4.0.7",
4646
"python-javabridge==4.0.3",

tests/preprocessing_tests/test_tilestitcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
Copyright 2021, Dana-Farber Cancer Institute and Weill Cornell Medicine
3-
License: GNU GPL 2.0
4-
"""
2+
Copyright 2021, Dana-Farber Cancer Institute and Weill Cornell Medicine
3+
License: GNU GPL 2.0
4+
"""
55

66
import glob
77
import os

0 commit comments

Comments
 (0)