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

Generalize correction application in cities #911

Merged
merged 10 commits into from
Nov 6, 2024

Conversation

gonzaponte
Copy link
Collaborator

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.

@gonzaponte gonzaponte force-pushed the different-corrections branch 2 times, most recently from e358775 to fd1724c Compare October 28, 2024 12:37
@gonzaponte gonzaponte force-pushed the different-corrections branch from fd1724c to 46f7881 Compare October 30, 2024 10:32
Comment on lines +481 to +484
def test_hits_corrector_valid_normalization_options( correction_map_filename
, norm_strat
, norm_value
, apply_temp ):
Copy link
Collaborator

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.

Copy link
Collaborator

@jwaiton jwaiton left a 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!

@carhc carhc merged commit bec62bd into next-exp:master Nov 6, 2024
1 check passed
@gonzaponte gonzaponte deleted the different-corrections branch November 7, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants