pint.models.model_builder.convert_binary_params_dict

pint.models.model_builder.convert_binary_params_dict(parfile_dict, convert_komkin=True, drop_ddk_sini=True, force_binary_model=None)[source]

Convert the PINT parameter dictionary to include the best-guess binary

Parameters:
  • parfile_dict – The parameter dictionary as read-in by parse_parfile

  • convert_komkin – Whether or not to convert the KOM and KIN parameters

  • drop_ddk_sini – Whether to drop SINI when converting to the DDK model

  • force_binary_model (str, optional) – When set to some binary model, like force_binary_model=”DD”, this will override the binary model set in the parfile. Defaults to None

Returns:

  • A new parfile dictionary with the binary model replaced with the best-guess

  • model. For a conversion to DDK, this function also converts the KOM/KIN

  • parameters if they exist.