fixed bug in RegionFinder causing crash
authorSean Upchurch <sau@caltech.edu>
Tue, 23 Aug 2011 21:00:18 +0000 (14:00 -0700)
committerSean Upchurch <sau@caltech.edu>
Tue, 23 Aug 2011 21:00:18 +0000 (14:00 -0700)
findall.py

index f6fb9e618ae7ebd72830e75b84aa536a455c07e8..2e4123ab2e0261988282c7c9f11b02c474d61fac 100755 (executable)
@@ -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: