-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy path_triinterpolate.pyi
More file actions
32 lines (27 loc) · 1.02 KB
/
_triinterpolate.pyi
File metadata and controls
32 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from matplotlib.tri import Triangulation, TriFinder
from typing import Literal
import numpy as np
from numpy.typing import ArrayLike
class TriInterpolator:
def __init__(
self,
triangulation: Triangulation,
z: ArrayLike,
trifinder: TriFinder | None = ...,
) -> None: ...
# __call__ and gradient are not actually implemented by the ABC, but are specified as required
def __call__(self, x: ArrayLike, y: ArrayLike) -> np.ma.MaskedArray: ...
def gradient(
self, x: ArrayLike, y: ArrayLike
) -> tuple[np.ma.MaskedArray, np.ma.MaskedArray]: ...
class LinearTriInterpolator(TriInterpolator): ...
class CubicTriInterpolator(TriInterpolator):
def __init__(
self,
triangulation: Triangulation,
z: ArrayLike,
kind: Literal["min_E", "geom", "user"] = ...,
trifinder: TriFinder | None = ...,
dz: tuple[ArrayLike, ArrayLike] | None = ...,
) -> None: ...
__all__ = ('TriInterpolator', 'LinearTriInterpolator', 'CubicTriInterpolator')