189 only use allowed values for imputation ratios#47
Merged
Conversation
Detailed Coverage Report
Summary of tests
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
okudum
reviewed
Jul 17, 2023
Contributor
okudum
left a comment
There was a problem hiding this comment.
Code looks good and unit tests run.
okudum
approved these changes
Jul 20, 2023
Contributor
okudum
left a comment
There was a problem hiding this comment.
Code looks good, I think, it is ready for merge
a4fd1ab to
984201a
Compare
jwestw
approved these changes
Aug 15, 2023
Contributor
jwestw
left a comment
There was a problem hiding this comment.
The code looks good, but is it correct that the new function flag_nulls_and_zeros is not called?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request submission
This branch fulfills the methods conditions:
"respondent" data means that the following values only are allowed in the "status" column for calculating the imputation link:
"Clear", "Clear - overridden", "Clear - overridden SE"
To check for non zero and not null data the function flag_nulls_and_zeros() was created with a unit test.
This is called within loop_unique(), and the condition on statuses is applied here as well.
To check:
Maybe someone can check whether the condition on the statuses is addequately tested, it's included in the updated test for loop_unique(), but it's not tested in forward_imputation(), backwards_imputation() or runimputation()
Someone can add this in if they feel it would be helpful.
Closes or fixes
Closes Changed instance dtype in toml to float64; in construction, zfill for… #189
Code
Documentation
Any new code includes all the following forms of documentation:
Argsandreturnsfor all major functionsData
Testing
Peer Review Section
environment.yamlFinal approval (post-review)
The author has responded to my review and made changes to my satisfaction.
Review comments
Insert detailed comments here!
These might include, but not exclusively:
that it is likely to interact with?)
works correctly?)
Your suggestions should be tailored to the code that you are reviewing.
Be critical and clear, but not mean. Ask questions and set actions.