set_country_name()
Set the country name for the debt sustainability analysis.
Usage
set_country_name(
ctx,
records,
*,
strict=True,
)Updates the selected country name in the Inputs sheet, which drives the initial debt-to-GDP ratio lookup. Input is normalized to a record with PARAMETER ‘country_name’ and OBS_VALUE; the setter checks record structure and key fields but does not validate the country name against the profile table.
Parameters
records: Scalar | Record | Records- A bare scalar value, a single record dict, or a list of records. Required record fields: - OBS_VALUE: The name of the country to set. Optional record fields: - PARAMETER: The parameter being set, identifying the workbook input cell. If supplied, expected value: “country_name”.
Returns
None: None- Applies the input updates to ctx.
Source Binding
Workbook range: Inputs!B5 Layout: scalar Value type: string
Examples
set_country_name(ctx, ‘Borvelia’)