tabensemb.config.UserConfig.from_file#
method
- static UserConfig.from_file(path: str) UserConfig[source]#
Merge the .py or .json file into defaults. If no suffix is given, it will search the current directory and
tabensemb.setting["default_config_path"]for a matched file. In a legal .py file, there should be a dictionary named “cfg”.- Parameters:
- path
The path to the configuration file to update the default configuration with or without a suffix (.py or .json).
- Returns:
- UserConfig
The combined configuration.