migrate_config_file
- hcipy.config.migrate_config_file(config_data)[source]
Migrate a legacy HCIPy configuration to the current flat format.
This function maps the legacy keys to their flat counterparts, and converts the execution time prediction coefficients from
{a, b, c}dictionaries to[a, b, c]lists.- Parameters:
- config_datadict
The legacy configuration, as a dictionary.
- Returns:
- dict or None
The migrated flat configuration, or None if the input was already in the flat format.