Skip to content

Commit 20ec6be

Browse files
authored
Fixes #882: add memory guard, bounded A*, and HPA* to prevent OOM (#891)
* Fixes #882: add memory guard, bounded A*, and HPA* to prevent OOM in pathfinding - Add _available_memory_bytes() and _check_memory() to raise MemoryError before allocating when the grid would exceed 80% of available RAM - Add search_radius parameter to a_star_search() for bounded sub-region search - Auto-compute search_radius when grid exceeds 50% of RAM - Add HPA* (hierarchical pathfinding) for long paths on large grids: coarsen grid, route globally, refine segment by segment - Apply memory guard and bounded/HPA* dispatch to both numpy and cupy backends - Add 7 new tests covering bounded A*, memory guard, HPA*, and auto-radius * Add emerging hotspots user guide notebook (fills slot 8) Walks through building a synthetic dataset, running the analysis, understanding the 17 trend categories, visualising results with matplotlib, inspecting per-pixel time series, boundary modes, and Dask integration.
1 parent c8b2d20 commit 20ec6be

File tree

3 files changed

+1176
-16
lines changed

3 files changed

+1176
-16
lines changed

0 commit comments

Comments
 (0)