From: Sean Upchurch Date: Tue, 23 Aug 2011 21:00:18 +0000 (-0700) Subject: fixed bug in RegionFinder causing crash X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=erange.git;a=commitdiff_plain;h=343a4a216be6e8fa5f1cb0d5c34af0f1fe3c54cd fixed bug in RegionFinder causing crash --- diff --git a/findall.py b/findall.py index f6fb9e6..2e4123a 100755 --- a/findall.py +++ b/findall.py @@ -226,7 +226,7 @@ class RegionFinder(): plusRatio = float(peak.numPlus)/peak.numHits if peakScore >= self.minPeak and self.minPlusRatio <= plusRatio <= self.maxPlusRatio: if self.doDirectionality: - if self.leftPlusRatio < peak.numLeft / peak.numPlus: + if self.leftPlusRatio < peak.numLeftPlus / peak.numPlus: self.statistics["mIndex"] += 1 self.statistics["mTotal"] += sumAll else: