From c2df4f4ca8f4d53d430601c9394366b05a031c95 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Mon, 11 Mar 2024 15:57:13 +1100 Subject: [PATCH] fix: disable type hint because of circular import --- LoopStructural/api/_surface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LoopStructural/api/_surface.py b/LoopStructural/api/_surface.py index a03b888d2..9892c6fdb 100644 --- a/LoopStructural/api/_surface.py +++ b/LoopStructural/api/_surface.py @@ -12,7 +12,7 @@ logger.warning("Using deprecated version of scikit-image") from skimage.measure import marching_cubes_lewiner as marching_cubes -# from LoopStructural.interpolators import GeologicalInterpolator +# from LoopStructural.interpolators._geological_interpolator import GeologicalInterpolator from LoopStructural.datatypes import Surface, BoundingBox surface_list = dict[str, Surface] @@ -22,7 +22,7 @@ class LoopIsosurfacer: def __init__( self, bounding_box: BoundingBox, - interpolator: Optional['GeologicalInterpolator'] = None, + interpolator=None, callable: Optional[Callable[[npt.ArrayLike], npt.ArrayLike]] = None, ): """Extract isosurfaces from a geological interpolator or a callable function.