Skip to content

Commit a990e17

Browse files
authored
Merge pull request #15607 from mcgratta/master
Python: Change success metric
2 parents 899441a + 0e9cc08 commit a990e17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/Python/scripts/make_smv_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def compare_images(image1_path, image2_path):
7171
os.chdir(outdir + folder[i])
7272
try:
7373
if os_name == "Linux":
74-
subprocess.run(['xvfb-run','-w','10','-s','-fp /usr/share/X11/fonts/misc -screen 0 1280x1024x24','-a',smokeview_path,
74+
subprocess.run(['xvfb-run','-w','2','-s','-fp /usr/share/X11/fonts/misc -screen 0 1280x1024x24','-a',smokeview_path,
7575
'-bindir',bindir,'-runscript', case[i] ], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
7676
else:
7777
subprocess.run([smokeview_path,'-bindir',bindir,'-runscript',case[i]],
@@ -100,7 +100,7 @@ def compare_images(image1_path, image2_path):
100100

101101
try:
102102
results = compare_images(directory+png_file.name, refdir+png_file.name)
103-
if results['similarity_percentage'] < 90:
103+
if results['similarity_percentage'] < 98:
104104
print('Warning: ',png_file.name,f"{results['similarity_percentage']:.2f}%")
105105
except FileNotFoundError as e:
106106
print(f"Error: Could not find image file - {e}")

0 commit comments

Comments
 (0)