tod_utils
CPU / memory detection and miscellaneous utilities. All functions in this
module are internal helpers (prefixed with _) and are not part of the
public API. They are used internally by the pipeline to auto-detect available
CPUs, estimate per-process memory budgets, and compute beam power thresholds.
CPU / process count, memory detection, and progress utilities for HPC and local environments.
Falls back to n_processes from config if SLURM is unavailable. Requires
psutil.