Permalink
Browse files

Make the subpage squasher output something in the event only one page…

… was found.
  • Loading branch information...
1 parent 5dc57b1 commit ac7cfb5a66568941c40ef2082a031602f607b646 @ali1234 committed Feb 8, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 config.py.example
  2. +1 −1 subpagesquash.py
View
@@ -50,5 +50,5 @@ offset_high = 119.0
# to give the low/high thresholds. Anything outside
# this range is assumed to be a 0 or a 1. Tweaking these
# can improve results, but often at a speed cost.
-thresh_low = 1.0
-thresh_high = 2.35
+thresh_low = 1.1
+thresh_high = 2.36
View
@@ -47,7 +47,7 @@ def __init__(self, filename):
unique_pages = self.hamming()
squashed_pages = []
for pl in unique_pages:
- if len(pl) > 1:
+ if len(pl) > 1 or len(unique_pages) == 1:
squashed_pages += [Page(self.squash(pl))]

0 comments on commit ac7cfb5

Please sign in to comment.