Skip to content

Commit 26d9b3c

Browse files
committed
plates: fix some type annotations
1 parent 0836a9c commit 26d9b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stagpy/plates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from .step import Geometry, Step
2828

2929

30-
def _vzcheck(iphis: Sequence[int], snap: Step, vz_thres: float) -> NDArray[np.int32]:
30+
def _vzcheck(iphis: NDArray[np.intp], snap: Step, vz_thres: float) -> NDArray[np.intp]:
3131
"""Remove positions where vz is below threshold."""
3232
# verifying vertical velocity
3333
vzabs = np.abs(snap.fields["v3"].values[0, ..., 0])
@@ -42,7 +42,7 @@ def _vzcheck(iphis: Sequence[int], snap: Step, vz_thres: float) -> NDArray[np.in
4242
@lru_cache
4343
def detect_plates(
4444
snap: Step, vz_thres_ratio: float = 0
45-
) -> tuple[NDArray[np.int32], NDArray[np.int32]]:
45+
) -> tuple[NDArray[np.intp], NDArray[np.intp]]:
4646
"""Detect plate limits using derivative of horizontal velocity.
4747
4848
This function is cached for convenience.

0 commit comments

Comments
 (0)