Skip to content

Commit

Permalink
Merge branch 'vectorize-gaps' of https://github.com/biocpy/iranges in…
Browse files Browse the repository at this point in the history
…to vectorize-gaps
  • Loading branch information
jkanche committed Jun 21, 2024
2 parents f7eba2d + e27a323 commit 6b3cc89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_set_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_intersect():
assert all(np.equal(res.start, [-2, 6, 14]))
assert all(np.equal(res.width, [5, 3, 4]))


def test_intersect_ncls():
x = IRanges([1, 5, -2, 0, 14], [10, 5, 6, 12, 4])
y = IRanges([14, 0, -5, 6, 18], [7, 3, 8, 3, 3])
Expand All @@ -47,4 +48,4 @@ def test_intersect_ncls():

res = y.intersect_ncls(x)
assert all(np.equal(res.start, [-2, 6, 14]))
assert all(np.equal(res.width, [5, 3, 4]))
assert all(np.equal(res.width, [5, 3, 4]))

0 comments on commit 6b3cc89

Please sign in to comment.