Skip to content

Commit e755c29

Browse files
committed
fix: mapping interpolators to cythonless version
1 parent 21e5572 commit e755c29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

LoopStructural/interpolators/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Interpolators and interpolation supports
33
44
"""
5+
56
__all__ = [
67
"InterpolatorType",
78
"GeologicalInterpolator",
@@ -75,6 +76,7 @@ class InterpolatorType(IntEnum):
7576
from ..interpolators._discrete_fold_interpolator import (
7677
DiscreteFoldInterpolator,
7778
)
79+
from ..interpolators._p2interpolator import P2Interpolator
7880

7981
try:
8082
from ..interpolators._surfe_wrapper import SurfeRBFInterpolator
@@ -89,8 +91,8 @@ class InterpolatorType(IntEnum):
8991
InterpolatorType.BASE_DISCRETE: DiscreteInterpolator,
9092
InterpolatorType.FINITE_DIFFERENCE: FiniteDifferenceInterpolator,
9193
InterpolatorType.DISCRETE_FOLD: DiscreteFoldInterpolator,
92-
InterpolatorType.PIECEWISE_LINEAR: PiecewiseLinearInterpolator,
93-
InterpolatorType.PIECEWISE_QUADRATIC: PiecewiseLinearInterpolator,
94+
InterpolatorType.PIECEWISE_LINEAR: P1Interpolator,
95+
InterpolatorType.PIECEWISE_QUADRATIC: P2Interpolator,
9496
InterpolatorType.BASE_DATA_SUPPORTED: GeologicalInterpolator,
9597
# InterpolatorType.SURFE: SurfeRBFInterpolator,
9698
}

0 commit comments

Comments
 (0)