Skip to content

Commit

Permalink
apply isort
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Jun 19, 2023
1 parent 96f613b commit 42a7c3b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 61 deletions.
2 changes: 1 addition & 1 deletion python/cucim/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def read(*names, **kwargs):
setup_requires=SETUP_REQUIRES,
install_requires=[
# TODO: Check cupy dependency based on cuda version
'click', 'numpy', "lazy_loader>=0.1", # 'scipy', 'scikit-image'
'click', 'numpy', "lazy_loader>=0.1", # 'scipy', 'scikit-image'
# eg: 'aspectlib==1.1.1', 'six>=1.7',
],
extras_require={
Expand Down
14 changes: 3 additions & 11 deletions python/cucim/src/cucim/skimage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,7 @@ def __dir__():


# Legacy imports into the root namespace; not advertised in __all__
from .util.dtype import (
dtype_limits,
img_as_float32,
img_as_float64,
img_as_float,
img_as_int,
img_as_uint,
img_as_ubyte,
img_as_bool
)

from .util.dtype import (dtype_limits, img_as_bool, img_as_float,
img_as_float32, img_as_float64, img_as_int,
img_as_ubyte, img_as_uint)
from .util.lookfor import lookfor
18 changes: 3 additions & 15 deletions python/cucim/src/cucim/skimage/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ submodules = [

__all__ = submodules

from . import (
color,
data,
exposure,
feature,
filters,
measure,
metrics,
morphology,
registration,
restoration,
segmentation,
transform,
util,
)
from . import (color, data, exposure, feature, filters, measure, metrics,
morphology, registration, restoration, segmentation, transform,
util)
42 changes: 8 additions & 34 deletions python/cucim/src/cucim/skimage/filters/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -56,39 +56,13 @@ from ._rank_order import rank_order
from ._sparse import correlate_sparse
from ._unsharp_mask import unsharp_mask
from ._window import window
from ._rank_order import rank_order
from .edges import (
farid,
farid_h,
farid_v,
laplace,
prewitt,
prewitt_h,
prewitt_v,
roberts,
roberts_neg_diag,
roberts_pos_diag,
scharr,
scharr_h,
scharr_v,
sobel,
sobel_h,
sobel_v,
)
from .edges import (farid, farid_h, farid_v, laplace, prewitt, prewitt_h,
prewitt_v, roberts, roberts_neg_diag, roberts_pos_diag,
scharr, scharr_h, scharr_v, sobel, sobel_h, sobel_v)
from .lpi_filter import LPIFilter2D, filter_inverse, inverse, wiener
from .ridges import frangi, hessian, meijering, sato
from .thresholding import (
apply_hysteresis_threshold,
threshold_isodata,
threshold_li,
threshold_local,
threshold_mean,
threshold_minimum,
threshold_multiotsu,
threshold_niblack,
threshold_otsu,
threshold_sauvola,
threshold_triangle,
threshold_yen,
try_all_threshold,
)
from .thresholding import (apply_hysteresis_threshold, threshold_isodata,
threshold_li, threshold_local, threshold_mean,
threshold_minimum, threshold_multiotsu,
threshold_niblack, threshold_otsu, threshold_sauvola,
threshold_triangle, threshold_yen, try_all_threshold)

0 comments on commit 42a7c3b

Please sign in to comment.