From c6bd90ce2845ec375d7680ba4b56f156f9c893db Mon Sep 17 00:00:00 2001 From: "S. Joshua Swamidass" Date: Sun, 16 Jun 2024 16:03:45 -0500 Subject: [PATCH] fixed bug --- .gitingore | 1 + pyproject.toml | 2 +- wsiml/taesd/__init__.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitingore diff --git a/.gitingore b/.gitingore new file mode 100644 index 0000000..f14918d --- /dev/null +++ b/.gitingore @@ -0,0 +1 @@ +.pyenv diff --git a/pyproject.toml b/pyproject.toml index 5098dea..c57f270 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ tiffslide = "^2.2.0" tiffslide-xarray = "^0.1" # itk-elastix = { version = "^0.19.0", optional = true } dm-tree = "^0.1.8" -onnxruntime = "^1.18.0" +# onnxruntime = "^1.18.0" pooch = "^1.8.2" data-science-types = "^0.2.23" diff --git a/wsiml/taesd/__init__.py b/wsiml/taesd/__init__.py index 2009dbd..642a9b0 100644 --- a/wsiml/taesd/__init__.py +++ b/wsiml/taesd/__init__.py @@ -43,7 +43,7 @@ def tiled_predict( self, x: xr.DataArray, approx_patch_size: int = 1500 * 2 ) -> xr.DataArray: processed = [] - slicers = list(self.dss.parition(x, approx_patch_size)) + slicers = list(self.dss.partition(x, approx_patch_size)) for slicer in tqdm.tqdm(slicers): patch = x[slicer] pred = self.predict(patch)