-
Notifications
You must be signed in to change notification settings - Fork 95
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
[TST] New smoke tests for functions in decay.py #367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally very good. Small technical point that I’d like corrected: the numbers generated are ints, not bools. In Python they can be casted to bool implicitly but the type of the matrix is still int.
@jbteves ah yes! I was aware of this but since 0 and 1s have the same effect as false and trues I thought it would be fine to do this and add a comment to explain it. Since it is called from the line |
Oh, I just want the comment to not say bool, you don’t have to change the test. The most common descriptor is probably “binary mask.” |
Codecov Report
@@ Coverage Diff @@
## master #367 +/- ##
===========================================
- Coverage 79.48% 48.06% -31.42%
===========================================
Files 40 39 -1
Lines 2208 2251 +43
===========================================
- Hits 1755 1082 -673
- Misses 453 1169 +716
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@monicayao Is there anything else you wanted to do here or is this ready to merge? |
Can you pull from master to run the new testing setup? |
@tsalo Hi! I think this is ready to merge. I do want to make the random inputs a pytest fixture eventually, but I think that can come after writing the more important test functions first. I updated my branch from master, and everything ran as before. 🎉 |
* Smoke tests for both functions in decay.py * Made the comment more clear - binary masks * Add little comments for sections of smoke and to do for other tests
Addresses part of #335
Changes proposed in this pull request:
fit_decay
andfit_decay_ts
test_smoke_kundu_metrics
from test_model_kundu_metrics.py