view test-data/compare_images.py @ 10:a1abfa420d9d draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit 5bd033a726b088eef3cf591da36ca1e9ba70d8c7"
author iuc
date Sun, 13 Feb 2022 22:43:45 +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)