load_toml_params#
- ptyrad.load.load_toml_params(file_path)[source]#
Load parameters from a TOML file.
Parameters: file_path (str): The path to the TOML file to be loaded.
Returns: dict: A dictionary containing the parameters loaded from the TOML file.
Raises: FileNotFoundError: If the specified file does not exist. ImportError: If the tomli package is not installed for Python < 3.11.