tracts.driver_utils._get_display_param_indices#

_get_display_param_indices(parameter_handler, model, two_steps_optimization, steps=None)#

Compute which parameter columns should be shown in starting-parameter tables.

The selected indices depend on whether optimization is single-step or two-step and, for two-step mode, which step is active.

Parameters:
  • parameter_handler (FixedParametersHandler) – Parameter handler containing free/fixed parameter metadata.

  • model – Demography model used as a fallback source for parameter metadata when parameter_handler.demography is unavailable.

  • two_steps_optimization (bool) – Whether optimization runs in two-step mode.

  • steps (list[int | str] | None) – Active step selection (e.g. [1], [2], [1, 2], ["step1"], ["step2"]).

Returns:

Parameter indices to display in the table for the active optimization context.

Return type:

list[int]