Skip to content

Commit

Permalink
Fix issue biosustain#10
Browse files Browse the repository at this point in the history
Ensure compatibility with latest `intervaltree` version
  • Loading branch information
pmaen authored Aug 25, 2022
1 parent c2be2cf commit 33d6465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions co/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def overlap(self, start, end):
if start > end:
raise RuntimeError("start cannot be larger than end.")

for f in sorted(self._features.search(start, end + 1)):
for f in sorted(self._features.overlap(start, end + 1)):
yield f.data

def difference(self, other):
Expand Down Expand Up @@ -377,4 +377,4 @@ def __eq__(self, other):
return False

def __repr__(self):
return 'Source({}, broken={})'.format(repr(self.component or self.identifier), self.is_broken)
return 'Source({}, broken={})'.format(repr(self.component or self.identifier), self.is_broken)

0 comments on commit 33d6465

Please sign in to comment.