Skip to content

Commit 6f03560

Browse files
committed
Call lru_cache directly on plates.detect_plates
This is a Python 3.8 improvement.
1 parent 13f3120 commit 6f03560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stagpy/plates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _vzcheck(iphis: Sequence[int], snap: Step, vz_thres: float) -> ndarray:
3434
return np.delete(iphis, argdel)
3535

3636

37-
@lru_cache()
37+
@lru_cache
3838
def detect_plates(snap: Step,
3939
vz_thres_ratio: float = 0) -> Tuple[ndarray, ndarray]:
4040
"""Detect plate limits using derivative of horizontal velocity.

0 commit comments

Comments
 (0)