-
Notifications
You must be signed in to change notification settings - Fork 74
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
Generalize correction application in cities #911
Conversation
e358775
to
fd1724c
Compare
fd1724c
to
46f7881
Compare
def test_hits_corrector_valid_normalization_options( correction_map_filename | ||
, norm_strat | ||
, norm_value | ||
, apply_temp ): |
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.
A docstring to explain this test may be useful, although I think its self explanatory. I think test_hits_corrector_invalid_normalization_options_raises
doesn't require one as the comments describing the fixtures + the name of the test explain (at least to me) what the test is looking to do.
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.
This PR introduces methods for correction beyond the standard NormStrategy.kr
including custom correction methods. The code is well documented and works as intended. Good job!
This PR modifies the cities to apply corrections in a more general way. Currently, the correction strategy is hard-wired to
NormStrategy.kr
which limits our capabilities. This PR extends the method to allow different correction strategies.