Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

06349019-744f-4cd9-b137-38a8430f4562 1.0 KB
Raw

You have to be logged in to leave a comment. Sign In
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
  1. from typing import Literal, overload
  2. import numpy as np
  3. from numpy.typing import ArrayLike
  4. from matplotlib.tri._triangulation import Triangulation
  5. from matplotlib.tri._triinterpolate import TriInterpolator
  6. class TriRefiner:
  7. def __init__(self, triangulation: Triangulation) -> None: ...
  8. class UniformTriRefiner(TriRefiner):
  9. def __init__(self, triangulation: Triangulation) -> None: ...
  10. @overload
  11. def refine_triangulation(
  12. self, *, return_tri_index: Literal[True], subdiv: int = ...
  13. ) -> tuple[Triangulation, np.ndarray]: ...
  14. @overload
  15. def refine_triangulation(
  16. self, return_tri_index: Literal[False] = ..., subdiv: int = ...
  17. ) -> Triangulation: ...
  18. @overload
  19. def refine_triangulation(
  20. self, return_tri_index: bool = ..., subdiv: int = ...
  21. ) -> tuple[Triangulation, np.ndarray] | Triangulation: ...
  22. def refine_field(
  23. self,
  24. z: ArrayLike,
  25. triinterpolator: TriInterpolator | None = ...,
  26. subdiv: int = ...,
  27. ) -> tuple[Triangulation, np.ndarray]: ...
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...