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

Address an edge case issue where sample points aren't associated with grid ids, causing a type error and failure to run #215

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

carlhiggs
Copy link
Collaborator

As per #214 , while experimenting with a non-traditional population grid (Australian 1km population grid, not from GHSL) the neighbourhood analysis script crashed due to an issue with sample points not associated with grid ids. I tightened up the logic in our spatial join to address this, and did a slight refactor of our filtering code to make this more compact/readable.

I have since test ran the updated code for Las Palmas and Melbourne successfully (notwithstanding a seperate issue for Melbourne #212; unfortunately current resolution for this is 'run again' -- i'll try to find time to solve more elegantly).

While doing this it reminded me of more work to be done refactoring, but I tried to keep this one small and focused. I think its okay to merge, but wanted to pass out for review.

@carlhiggs carlhiggs requested review from a team and shiqin-liu March 14, 2023 01:05
@carlhiggs carlhiggs merged commit 04fc389 into main Mar 16, 2023
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.

1 participant