-
Notifications
You must be signed in to change notification settings - Fork 19
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
Unit tests #226
Comments
Updated progress after PR #231 |
Hello @israelmcmc! I would like to write some unit tests to help this project get better coverage. |
Thanks @augustus-thomas! How about you add some tests for the response module to increase its coverage? The tests are here: You can see the lines that are not covered here: Let me know if you need more info to get you started :) |
Hi @israelmcmc thank you so much. I am very excited to finally start helping out! It looks like a large number of the uncovered lines in Also, is there a way to browse the cosipy data that can be fetched with wasabi? That way I would not need to ask this type of question in the future |
@augustus-thomas You can use the following command to browse wasabi (with your cosipy environment loaded):
There's no equivalent cosipy function, but you could add one in PR. fetch_wasabi_file is a wrapper around a similar command like the above. There are a few .rsp files in there. You can use them to see how's the format internally (it's just a histogram of simulated counts) but please create a light fake one for the unit tests. You don't have to run the simulation from scratch, you can create it by "hand", maybe something similar to this test file: You can see that is very coarse and it can't be use for science, but the unit tests only check that the algorithm itself works. |
Umbrella issue to keep track of the unit test coverage progress. While the eventual goal is to have 100% coverage, for now I'll check each module when it reaches 80%.
See details here: https://app.codecov.io/gh/cositools/cosipy/tree/develop/cosipy
The text was updated successfully, but these errors were encountered: