Skip to content

Commit bc4ae6a

Browse files
committed
use LinearNDInterpolator
1 parent 3182a44 commit bc4ae6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/learner/learner2D.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def uniform_loss(ip: LinearNDInterpolator) -> np.ndarray:
124124

125125
def resolution_loss_function(
126126
min_distance: float = 0, max_distance: float = 1
127-
) -> Callable:
127+
) -> Callable[[LinearNDInterpolator], np.ndarray]:
128128
"""Loss function that is similar to the `default_loss` function, but you
129129
can set the maximimum and minimum size of a triangle.
130130

0 commit comments

Comments
 (0)