From 7a2704392153fce551f2d8a3e458b1e397cef76d Mon Sep 17 00:00:00 2001 From: Jakub Kaczmarzyk Date: Wed, 10 Jul 2024 17:30:05 -0400 Subject: [PATCH] format with ruff --- wsinfer/cli/convert_csv_to_sbubmi.py | 2 +- wsinfer/patchlib/__init__.py | 2 +- wsinfer/wsi.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wsinfer/cli/convert_csv_to_sbubmi.py b/wsinfer/cli/convert_csv_to_sbubmi.py index 005fa9a..2d43b90 100644 --- a/wsinfer/cli/convert_csv_to_sbubmi.py +++ b/wsinfer/cli/convert_csv_to_sbubmi.py @@ -36,8 +36,8 @@ import pandas as pd import tqdm -from ..wsi import get_wsi_cls from ..wsi import CanReadRegion +from ..wsi import get_wsi_cls def _box_to_polygon( diff --git a/wsinfer/patchlib/__init__.py b/wsinfer/patchlib/__init__.py index b42b465..e15561b 100644 --- a/wsinfer/patchlib/__init__.py +++ b/wsinfer/patchlib/__init__.py @@ -10,9 +10,9 @@ import numpy.typing as npt from PIL import Image -from ..wsi import get_wsi_cls from ..wsi import _validate_wsi_directory from ..wsi import get_avg_mpp +from ..wsi import get_wsi_cls from .patch import get_multipolygon_from_binary_arr from .patch import get_patch_coordinates_within_polygon from .segment import segment_tissue diff --git a/wsinfer/wsi.py b/wsinfer/wsi.py index 79b3666..61a7e35 100644 --- a/wsinfer/wsi.py +++ b/wsinfer/wsi.py @@ -3,9 +3,7 @@ import logging from fractions import Fraction from pathlib import Path -from typing import Literal from typing import Protocol -from typing import overload import tifffile from PIL import Image