instedd / planwise

PlanWise applies algorithms and geospatial optimisation techniques to existing data on population, road networks and health facilities, so health care planners can better understand the unmet health needs of their constituents and better locate future health facilities.
GNU General Public License v3.0
40 stars 6 forks source link

fix: Avoid NPE when computing suggestions for improvements #731

Closed ggiraldez closed 4 months ago

ggiraldez commented 4 months ago

When providers are located in an area outside of the friction data (most commonly in a coast) but still fall inside the region contour (because it has better resolution), the engine will fail to compute any demand information for it. This lead to and NPE in the suggestions algorithm when computing the relative cost of such providers.