From 86618b1e95ee9863312952aced8ab30038fb1bee Mon Sep 17 00:00:00 2001 From: Najib Ishaq Date: Wed, 14 Feb 2024 14:40:10 -0500 Subject: [PATCH] fix: more import fixes --- .../polus/images/formats/file_renaming/__init__.py | 2 +- .../images/transforms/images/montage/montage.py | 2 +- .../tabular_thresholding/tabular_thresholding.py | 12 +++--------- .../tabular_thresholding/thresholding/__init__.py | 12 +++--------- 4 files changed, 8 insertions(+), 20 deletions(-) diff --git a/formats/file-renaming-tool/src/polus/images/formats/file_renaming/__init__.py b/formats/file-renaming-tool/src/polus/images/formats/file_renaming/__init__.py index 95da50b49..89439693d 100644 --- a/formats/file-renaming-tool/src/polus/images/formats/file_renaming/__init__.py +++ b/formats/file-renaming-tool/src/polus/images/formats/file_renaming/__init__.py @@ -1,4 +1,4 @@ """File Renaming.""" __version__ = "0.2.4-dev0" -from .file_renaming import file_renaming +from . import file_renaming diff --git a/transforms/images/montage-tool/src/polus/images/transforms/images/montage/montage.py b/transforms/images/montage-tool/src/polus/images/transforms/images/montage/montage.py index 5eb26a266..8b79ae3d6 100644 --- a/transforms/images/montage-tool/src/polus/images/transforms/images/montage/montage.py +++ b/transforms/images/montage-tool/src/polus/images/transforms/images/montage/montage.py @@ -7,7 +7,7 @@ from bfio import BioReader from filepattern import FilePattern -from polus.plugins.transforms.images.montage.utils import ( +from .utils import ( DictWriter, VectorWriter, subpattern, diff --git a/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/tabular_thresholding.py b/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/tabular_thresholding.py index 75ca41964..d00ec2bd8 100644 --- a/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/tabular_thresholding.py +++ b/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/tabular_thresholding.py @@ -10,15 +10,9 @@ import numpy as np import vaex -from polus.plugins.transforms.tabular.tabular_thresholding.thresholding import ( # noqa - custom_fpr as custom_fpr, -) -from polus.plugins.transforms.tabular.tabular_thresholding.thresholding import ( # noqa - n_sigma as n_sigma, -) -from polus.plugins.transforms.tabular.tabular_thresholding.thresholding import ( # noqa - otsu as otsu, -) +from .thresholding import custom_fpr +from.thresholding import n_sigma +from .thresholding import otsu logger = logging.getLogger(__name__) diff --git a/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/thresholding/__init__.py b/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/thresholding/__init__.py index d3412dcad..5e67d641c 100644 --- a/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/thresholding/__init__.py +++ b/transforms/tabular/tabular-thresholding-tool/src/polus/images/transforms/tabular/tabular_thresholding/thresholding/__init__.py @@ -1,12 +1,6 @@ """Tabular Thresholding.""" __version__ = "0.1.3" -from polus.plugins.transforms.tabular.tabular_thresholding.thresholding import ( # noqa - custom_fpr as custom_fpr, -) -from polus.plugins.transforms.tabular.tabular_thresholding.thresholding import ( # noqa - n_sigma as n_sigma, -) -from polus.plugins.transforms.tabular.tabular_thresholding.thresholding import ( # noqa - otsu as otsu, -) +from . import custom_fpr +from . import n_sigma +from . import otsu