Skip to content

Commit

Permalink
make freq an int
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Oct 3, 2023
1 parent 6f47b50 commit 9cad01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Melt/identify_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ def enlarge(self, scale, min_track_length):
new_length = (self.freq_end - self.freq_start) * scale
extension = (new_length - (self.freq_end - self.freq_start)) / 2
self.freq_start = self.freq_start - extension
self.freq_end = self.freq_end + extension
self.freq_start = max(self.freq_start, 0)
self.freq_end = int(self.freq_end + extension)
self.freq_start = int(max(self.freq_start, 0))

def merge(self, other):
self.start = min(self.start, other.start)
Expand Down

0 comments on commit 9cad01b

Please sign in to comment.