Skip to content

Commit

Permalink
fix a debubble zero dividing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed May 16, 2017
1 parent 58fe15c commit 028612d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion after.py
Expand Up @@ -202,7 +202,10 @@ def main():

if options.input_dir != None:
if options.debubble:
runDebubble(options)
try:
runDebubble(options)
except Exception:
print('Error happened with debubble function, just skip it now since it will not affect other features')
processDir(options.input_dir, options)
else:
if options.barcode_flag in options.read1_file and parseBool(options.barcode):
Expand Down
3 changes: 2 additions & 1 deletion circledetector.py
Expand Up @@ -89,7 +89,8 @@ def boundRectArea(self):
return (right - left) * (bottom - top)

def isInCorner(self):

if len(self.records)==0:
return False
cornerCount = 0
thresholdX = 0.1 * self.xmax
thresholdY = 0.1 * self.ymax
Expand Down

0 comments on commit 028612d

Please sign in to comment.