Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration test with image comparison #9

Open
mammatus95 opened this issue Jul 31, 2024 · 2 comments
Open

Integration test with image comparison #9

mammatus95 opened this issue Jul 31, 2024 · 2 comments
Assignees
Labels

Comments

@mammatus95
Copy link
Owner

mammatus95 commented Jul 31, 2024

To ensure that plot result did not change when new code is committed or a new libary is used,
proper image testing is needed.

Source:
https://matplotlib.org/stable/api/testing_api.html

@mammatus95
Copy link
Owner Author

[Pipeline] sh ([hide](http://localhost:8080/job/HodographMaps_Run/9/console#))
+ ./run_script.sh 12


Hodograph Maps Run Script
Version: 0.1

Configurations:
Model run: 00z
Leadtime: 12z
Today Date:  31.07.2024


Start downloading leadtime 012h
Plot Hodograph Maps
done with leadtime 012h on Mi 31. Jul 12:57:46 CEST 2024
mv: cannot stat './src/images/*12.png': No such file or directory
ls: cannot access './results_img/*12.png': No such file or directory

@mammatus95
Copy link
Owner Author

mammatus95 commented Jan 18, 2025

Matplotlib testing:

img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images(img1, img2, 0.001)

mammatus95 added a commit that referenced this issue Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant