Skip to content

Commit 91bcbed

Browse files
committed
fix: change to interpolation factory
1 parent 66a9825 commit 91bcbed

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

LoopStructural/api/_interpolate.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Optional
66
from LoopStructural.interpolators import (
77
GeologicalInterpolator,
8-
get_interpolator,
8+
InterpolatorFactory,
99
)
1010
from LoopStructural.utils import BoundingBox
1111
from LoopStructural.utils import getLogger
@@ -40,11 +40,12 @@ def __init__(
4040
"""
4141
self.dimensions = dimensions
4242
self.type = "FDI"
43-
self.interpolator: GeologicalInterpolator = get_interpolator(
44-
bounding_box=bounding_box,
45-
interpolatortype=type,
46-
dimensions=dimensions,
47-
nelements=nelements,
43+
self.interpolator: GeologicalInterpolator = (
44+
InterpolatorFactory.create_interpolator(
45+
type,
46+
bounding_box,
47+
nelements,
48+
)
4849
)
4950

5051
def fit(

0 commit comments

Comments
 (0)