view test-data/compare_images.py @ 12:14e7c35f3d00 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit 26f4478d873b339c5a1eccf18df68700a145a404
author iuc
date Wed, 25 Jan 2023 15:33:12 +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)