osmose.engine.processes.precompute

Run-setup helpers that turn a config into flat engine inputs, kept free of Numba.

The Python engine uses them at the start of a run (simulate). The C# engine’s bundle builder (osmose.engine_cs.build) calls the same functions, so both engines start from identical inputs. They live here, not in processes.mortality / processes.movement (which re-export them), because those modules import Numba at import time: a C# process that imported them for these plain helpers paid 64 MB of Numba and LLVM it never used (measured 2026-11-18, task 1.11). tests/test_csharp_build_no_numba.py keeps it that way.

Functions

build_random_patches(config, grid, rng)

Build the placement domain of every species that uses the "random" distribution.