tracts.driver_utils._print_run_intro#

_print_run_intro(parameter_handler, demographic_model, start_params_list, bound_func, title_message, two_steps_optimization, autosomes_in_step_2, steps=None, print_start_params_table=True)#

Print the optimization subtitle (always) and starting-parameter table (optional) for a run.

This helper centralizes the pre-run console/log output shown before each optimization phase. Time-parameter transition logging is temporarily disabled while printing the starting-parameter table to avoid emitting admissibility transition warnings during display-only conversions.

Parameters:
  • parameter_handler (FixedParametersHandler) – Parameter handler used for subtitle generation and parameter conversion.

  • demographic_model – Demographic model used as fallback metadata source when needed.

  • start_params_list (list[ndarray]) – Starting parameters (in optimizer units) for all runs in the phase.

  • bound_func (Callable[[ndarray], float]) – Bound/violation function used to flag out-of-bounds starts in the table.

  • title_message (str) – Title printed above the starting-parameter table.

  • two_steps_optimization (bool) – Whether optimization is single-step or two-step.

  • autosomes_in_step_2 (bool) – In two-step mode, whether step 2 uses autosomal data in addition to allosomal data.

  • steps (list[int | str] | None) – Active step selection used to compute subtitle and displayed columns.

  • print_start_params_table (bool) – Whether to print the starting-parameters table below the subtitle. The dash-bordered subtitle itself is always printed. Defaults to True.

Return type:

None