fraudtwin.require_scale_plan#

fraudtwin.require_scale_plan(config, *, run_id=None)[source][source]#

Resolve an enabled scale plan and narrow away the optional result.

Use this helper in applications that require scale execution. It turns a disabled scale section into a clear configuration error and gives static type checkers a concrete ScalePlan for shard and checkpoint code.

Raises:

ValueError – If scale generation is not enabled in config.

Return type:

ScalePlan

Parameters:
  • config (SimulationRunConfig)

  • run_id (str | None)