mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-12-01 08:44:13 +01:00
contours_in_same_horizon: fix 5d15941b
This commit is contained in:
parent
e428e7ad78
commit
ee59a6809d
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ def contours_in_same_horizon(cy_main_hor):
|
||||||
by index into the array.
|
by index into the array.
|
||||||
"""
|
"""
|
||||||
sort = np.argsort(cy_main_hor)
|
sort = np.argsort(cy_main_hor)
|
||||||
same = np.diff(cy_main_hor[sort] <= 20)
|
same = np.diff(cy_main_hor[sort]) <= 20
|
||||||
# groups = np.split(sort, np.arange(len(cy_main_hor) - 1)[~same] + 1)
|
# groups = np.split(sort, np.arange(len(cy_main_hor) - 1)[~same] + 1)
|
||||||
same = np.flatnonzero(same)
|
same = np.flatnonzero(same)
|
||||||
return np.stack((sort[:-1][same], sort[1:][same])).T
|
return np.stack((sort[:-1][same], sort[1:][same])).T
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue