jesterTOV.inference.run_inference.determine_keep_names

jesterTOV.inference.run_inference.determine_keep_names#

determine_keep_names(config, prior, fixed_params=None)[source]#

Determine which parameters need to be preserved in transform output.

This function checks which likelihoods are enabled and determines which prior parameters need to be kept in the transform output for likelihood evaluation.

Parameters:
  • config (InferenceConfig) – Configuration object with likelihood settings

  • prior (CombinePrior) – Prior object with parameter names (sampled parameters only)

  • fixed_params (dict[str, float] | None) – Parameters pinned to constant values via Fixed(...) in the prior file. These are not in prior.parameter_names but are still valid.

Return type:

list[str] | None

Returns:

list[str] | None – List of parameter names to keep, or None if no special handling needed

Raises:

ValueError – If a required parameter is missing from both the prior and fixed_params