diff test-data/compare_images.py @ 8:4ac4e7083b7e draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit 3bfe22506f7d9922ac885ef6a6fbe8f96c83ed14"
author iuc
date Tue, 21 Jul 2020 03:32:48 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/compare_images.py	Tue Jul 21 03:32:48 2020 -0400
@@ -0,0 +1,12 @@
+import os
+
+from matplotlib.testing.compare import compare_images
+
+pngs = [f for f in os.listdir('test-data') if f.endswith('.png')]
+
+for png in pngs:
+    print(png)
+    res = compare_images(os.path.join('test-data', png),
+                         os.path.join('outputs', png),
+                         17)
+    print(res)