view test-data/compare_images.py @ 13:360df4999907 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit b7df28a308484a4af1d33e0ddc2c4e391643ec1e
author iuc
date Tue, 28 Mar 2023 10:48:50 +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)