Skip to content

Commit

Permalink
Change typing from List[int] to npt.ArrayLike
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Oct 16, 2023
1 parent c7fe159 commit 0241322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/skan/csr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from skimage import morphology
from skimage.graph import central_pixel
from skimage.util._map_array import map_array, ArrayMap
from typing import List
import numpy.typing as npt
import numba
import warnings

Expand Down Expand Up @@ -656,7 +656,7 @@ def path_stdev(self):
means = self.path_means()
return np.sqrt(np.clip(sumsq/lengths - means*means, 0, None))

def prune_paths(self, indices: List[int]) -> 'Skeleton':
def prune_paths(self, indices: npt.ArrayLike) -> 'Skeleton':
"""Prune nodes from the skeleton.
Parameters
Expand Down

0 comments on commit 0241322

Please sign in to comment.