meaning of absolute criterion in outputtreecompare
I'm using the outputtreecompare
with the releases/2.4
branch and stumbled upon the 'absolute' criterion for comparing floats. In compareini.py, the values are compared using abs(value-ini2[key]) < absolute * max(value, ini2[key])
(line 156) and I am wondering about the meaning of the max
term. I would have expected the behaviour without this term (consider for example the case value<=0
and ini2[key]<=0
). Is this intended, and if so, is there a possibility to compare using abs(value-ini2[key]) < absolute
?