File: test.py

package info (click to toggle)
sorted-nearest 0.0.39%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: python: 215; sh: 20; makefile: 8
file content (12 lines) | stat: -rw-r--r-- 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
starts = [1, 5]
import numpy as np

starts = np.array([1, 5, 13], dtype=int)
ends = np.array([3, 10, 14], dtype=int)
from sorted_nearest.src.sorted_nearest import find_clusters64

print(starts, ends)
for slack in [1, 2, 3]:
    cstarts, cends = find_clusters64(starts, ends, slack=slack)
    print(slack)
    print(cstarts, cends)