X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=scripts%2Fsnapdiff.py;h=9253d16d2842a965b7d9246a323fa1694d6838c9;hb=01b8c7b075770693b19659cf4fea5338185af4f8;hp=13e5069abc09fd79b2e6aa0a43464a390d15d196;hpb=905c1283897c27188ef1984f302379befc9de9b5;p=apitrace 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()