]> git.cworth.org Git - apitrace/blobdiff - scripts/snapdiff.py
jsondiff: Try to be more accurate w/ commas/newlines.
[apitrace] / scripts / snapdiff.py
index 0ed3937a8f8e669accf577c4b06d6472784e3c57..9253d16d2842a965b7d9246a323fa1694d6838c9 100755 (executable)
@@ -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()
@@ -138,8 +138,7 @@ def main():
     global options
 
     optparser = optparse.OptionParser(
-        usage="\n\t%prog [options] <ref_prefix> <src_prefix>",
-        version="%%prog")
+        usage="\n\t%prog [options] <ref_prefix> <src_prefix>")
     optparser.add_option(
         '-o', '--output', metavar='FILE',
         type="string", dest="output", default='index.html',