📝 Update 05-patch-prediction notebook for the New API
#2094
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will perform code type checking using mypy | |
| name: mypy type checking | |
| on: | |
| push: | |
| branches: [ develop, pre-release, master, main ] | |
| pull_request: | |
| branches: [ develop, pre-release, master, main, dev-define-engines-abc ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt-get install -y libopenslide-dev openslide-tools libopenjp2-7 libopenjp2-tools | |
| python -m pip install --upgrade pip | |
| pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu | |
| pip install -r requirements/requirements_dev.txt | |
| - name: Perform type checking | |
| run: | | |
| mypy --install-types --non-interactive --follow-imports=skip \ | |
| tiatoolbox/__init__.py \ | |
| tiatoolbox/__main__.py \ | |
| tiatoolbox/type_hints.py \ | |
| tiatoolbox/tiatoolbox.py \ | |
| tiatoolbox/utils \ | |
| tiatoolbox/tools \ | |
| tiatoolbox/data \ | |
| tiatoolbox/annotation \ | |
| tiatoolbox/cli/common.py \ | |
| tiatoolbox/models/__init__.py \ | |
| tiatoolbox/models/models_abc.py \ | |
| tiatoolbox/models/architecture/__init__.py \ | |
| tiatoolbox/models/architecture/utils.py \ | |
| tiatoolbox/wsicore/__init__.py \ | |
| tiatoolbox/wsicore/wsimeta.py \ | |
| tiatoolbox/wsicore/metadata/ |