Skip to content

Commit

Permalink
add: comments only [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
chaimleib committed Jan 2, 2015
1 parent 1597e16 commit b2d596f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intervaltree/intervaltree.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,9 @@ def search(self, begin, end=None, strict=False):

boundary_table = self.boundary_table
bound_begin = boundary_table.bisect_left(begin)
bound_end = boundary_table.bisect_left(end)
bound_end = boundary_table.bisect_left(end) # exclude final end bound
result.update(root.search_overlap(
# slice notation is slightly slower
boundary_table.iloc[index] for index in xrange(bound_begin, bound_end)
))

Expand Down

0 comments on commit b2d596f

Please sign in to comment.