MCPcopy Create free account
hub / github.com/Astropulse/hexmap / cluster

Function cluster

map.py:728–732  ·  view source on GitHub ↗
(cfg: Config, tilemap: np.ndarray, land_mask: np.ndarray)

Source from the content-addressed store, hash-verified

726
727
728def cluster(cfg: Config, tilemap: np.ndarray, land_mask: np.ndarray) -> np.ndarray:
729 out = tilemap
730 for i in range(max(0, int(cfg.cluster_passes))):
731 out = cluster_once(cfg, out, land_mask, f"land{i}")
732 return out
733
734
735def add_dunes_in_sand_bodies(cfg: Config, tilemap: np.ndarray, land_mask: np.ndarray) -> np.ndarray:

Callers 1

build_tilemapFunction · 0.85

Calls 1

cluster_onceFunction · 0.85

Tested by

no test coverage detected