qimpy.io.dict.key_cleanup
- key_cleanup(params)
Clean-up dictionary keys for use in constructors. This is required eg. for dicts from YAML to make sure keys are compatible with passing as keyword-only arguments to constructors. Currently, this replaces hyphens (which look nicer) in keys to underscores internally, so that they become valid identifiers within the code.
- Parameters:
params (dict) –
- Return type:
dict