summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-12-04 15:31:31 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-12-04 15:32:17 +0000
commit01b8c7b075770693b19659cf4fea5338185af4f8 (patch)
tree5140fd6cef661417017d13b15041358615487d11
parente9426dd61586757d23d7dddc85b3076f477e7f07 (diff)
Fix snapdiff ae method.
-rwxr-xr-xscripts/snapdiff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/snapdiff.py b/scripts/snapdiff.py
index 13e5069..9253d16 100755
--- a/scripts/snapdiff.py
+++ b/scripts/snapdiff.py
@@ -87,7 +87,7 @@ class Comparer:
bits = -math.log(rel_error)/math.log(2.0)
return bits
- def ae(self):
+ def ae(self, fuzz = 0.05):
# Compute absolute error
# TODO: this is approximate due to the grayscale conversion
h = self.diff.convert('L').histogram()