Skip to content

Commit

Permalink
Merge branch 'dev-define-engines-abc' into dev-update-engine-abc-wsi
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneahmed authored Jan 19, 2024
2 parents 57162d2 + 330c12e commit f9839db
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
sudo apt update
sudo apt-get install -y libopenslide-dev openslide-tools libopenjp2-7 libopenjp2-tools
python -m pip install --upgrade pip
python -m pip install ruff==0.0.286 pytest pytest-cov pytest-runner
python -m pip install ruff==0.1.13 pytest pytest-cov pytest-runner
pip install -r requirements/requirements.txt
- name: Cache tiatoolbox static assets
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ repos:
language: python
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.11
rev: v0.1.13
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ torch>=2.1.0
torchvision>=0.15.0
tqdm>=4.64.1
umap-learn>=0.5.3
wsidicom>=0.7.0
wsidicom>=0.7.0, <0.18.0 # newly released version is causing tests to fail for now
zarr>=2.13.3
2 changes: 1 addition & 1 deletion requirements/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pytest>=7.2.0
pytest-cov>=4.0.0
pytest-runner>=6.0
pytest-xdist[psutil]
ruff==0.0.286 # This will be updated by pre-commit bot to latest version
ruff==0.1.13 # This will be updated by pre-commit bot to latest version
toml>=0.10.2
twine>=4.0.1
wheel>=0.37.1
10 changes: 5 additions & 5 deletions tiatoolbox/wsicore/metadata/ngff.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class CoordinateTransform:
"""

type: str = "identity" # noqa: A003
type: str = "identity"
scale: list[float] | None = None


Expand Down Expand Up @@ -140,7 +140,7 @@ class Axis:
"""

name: TCZYX
type: Literal["time", "space", "channel"] # noqa: A003
type: Literal["time", "space", "channel"]
unit: SpaceUnits | TimeUnits | None = None


Expand Down Expand Up @@ -186,8 +186,8 @@ class Window:
"""

end: Number = 255
max: Number = 255 # noqa: A003
min: Number = 0 # noqa: A003
max: Number = 255
min: Number = 0
start: Number = 0


Expand Down Expand Up @@ -257,7 +257,7 @@ class Omero:
"""

name: str | None = None
id: int = 1 # noqa: A003
id: int = 1
channels: list = field(
default_factory=lambda: [
Channel(label="Red", color="FF0000"),
Expand Down
2 changes: 1 addition & 1 deletion tiatoolbox/wsicore/wsireader.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class WSIReader:
"""

@staticmethod
def open( # noqa: A003, PLR0911
def open( # noqa: PLR0911
input_img: str | Path | np.ndarray | WSIReader,
mpp: tuple[Number, Number] | None = None,
power: Number | None = None,
Expand Down

0 comments on commit f9839db

Please sign in to comment.