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

Fix error in latitude grouping when creating a unique postcode index #62

Merged
merged 5 commits into from
Dec 13, 2022

Conversation

hedi-guedidi
Copy link
Contributor

@hedi-guedidi hedi-guedidi commented Jun 16, 2022

Simple modification at line L254 that should solve issue #32 and issue #55. latitude was misspelled as "lattitude". With this misspelling the field latitude does figure in the valid_keys list and thus the average value of the latitude will be overwritten in line L260 with the first value seen in the source database and thus the coordinates are slightly shifted.

Closes #32
Closes #55

Simple modification at line 254 that should solve issue symerio#32 and issue symerio#55. latitude was misspelled as  "lattitude". With this misspelling the field latitude *does* figure in the valid_keys list and thus the average value of the latitude will be overwritten in line 260 with the first value seen in the source database and thus the coordinates are slightly shifted.
Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @hedi-guedidi ! Could you please add non-regression unit test (a test that failed before this fix)? Thanks!

@rth rth changed the title Update pgeocode.py Fix error in lattitude name when grouping Dec 13, 2022
@rth rth changed the title Fix error in lattitude name when grouping Fix error in latitude groupby when creating a unique postcode index Dec 13, 2022
@rth rth changed the title Fix error in latitude groupby when creating a unique postcode index Fix error in latitude grouping when creating a unique postcode index Dec 13, 2022
@rth
Copy link
Member

rth commented Dec 13, 2022

Thanks for addressing this @hedi-guedidi !

@rth rth merged commit b0999b7 into symerio:main Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants