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

Optimisation: rasterise region once #26

Open
famuvie opened this issue Apr 11, 2019 · 2 comments
Open

Optimisation: rasterise region once #26

famuvie opened this issue Apr 11, 2019 · 2 comments
Assignees
Labels
usability Improvements to the UX

Comments

@famuvie
Copy link
Member

famuvie commented Apr 11, 2019

Currently, when several vector maps are used as risk factors, the function distance_map() is called for each one. This function determines the region of interest by rasterising the map of epidemiological units.
This operation should be done once for all.

@famuvie
Copy link
Member Author

famuvie commented Apr 11, 2019

I need to refactor this function. It should take the raster of the region of interest as input, rather than computing it within the function. Perform one operation, and do it well. Leave the rasterisation outside.

@famuvie famuvie self-assigned this Apr 11, 2019
@famuvie famuvie added the usability Improvements to the UX label Apr 11, 2019
@famuvie
Copy link
Member Author

famuvie commented Apr 11, 2019

Each unnecessary rasterisation costs a couple of seconds for the CMR example at default resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Improvements to the UX
Projects
None yet
Development

No branches or pull requests

1 participant