projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9426dd
)
Fix snapdiff ae method.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 4 Dec 2011 15:31:31 +0000
(15:31 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 4 Dec 2011 15:32:17 +0000
(15:32 +0000)
scripts/snapdiff.py
patch
|
blob
|
history
diff --git
a/scripts/snapdiff.py
b/scripts/snapdiff.py
index
13e5069
..
9253d16
100755
(executable)
--- 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()