view test-data/compare_images.py @ 11:7dd841a32245 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit df07890f27c5d18e423ec889eadca82bd7958def
author iuc
date Sat, 01 Oct 2022 08:43:22 +0000
parents 4ac4e7083b7e
children
line wrap: on
line source

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)