mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-19 19:09:36 +00:00
Tighten down requirements for image compare in docs generation.
This commit is contained in:
parent
51e7f514a4
commit
fa84fffa94
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ def image_compare(file1, file2):
|
||||||
sq = (value * (i % 256) ** 2 for i, value in enumerate(diff))
|
sq = (value * (i % 256) ** 2 for i, value in enumerate(diff))
|
||||||
sum_squares = sum(sq)
|
sum_squares = sum(sq)
|
||||||
rms = math.sqrt(sum_squares / float(img1.size[0] * img1.size[1]))
|
rms = math.sqrt(sum_squares / float(img1.size[0] * img1.size[1]))
|
||||||
return rms<100
|
return rms<10
|
||||||
|
|
||||||
|
|
||||||
def image_resize(infile, outfile, newsize=(320,240)):
|
def image_resize(infile, outfile, newsize=(320,240)):
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,128];
|
BOSL_VERSION = [2,0,129];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue