graphinvent/parameters/constants.py
def override_params(all_params : dict) -> dict:
    """
    If there exists an `input.csv` in the job directory, loads those arguments
    and overrides their default values from `features.py`.
    """
    input_csv_path = all_params["job_dir"] + "input.csv"

    # check if there exists and `input.csv` in working directory
    if os.path.exists(input_csv_path):
        # override default values for parameters in `input.csv`
        params_to_override_dict = load_params(input_csv_path)
        for key, value in params_to_override_dict.items():
            all_params[key] = value

    return all_params

    If there exists an `input.csv` in the job directory, loads those arguments
    and overrides their default values from `features.py`.
    
If there exists an `input.csv` in the job directory, loads those arguments
and overrides their default values from `features.py`.
If there exists an ` input . csv ` in the job directory loads those arguments and overrides their default values from ` features . py ` .
def override_params(all_params : dict) -> dict:
    input_csv_path = all_params["job_dir"] + "input.csv"
    if os.path.exists(input_csv_path):
        params_to_override_dict = load_params(input_csv_path)
        for key, value in params_to_override_dict.items():
            all_params[key] = value
    return all_params
def override_params ( all_params : dict ) -> dict : input_csv_path = all_params [ "job_dir" ] + "input.csv" if os . path . exists ( input_csv_path ) : params_to_override_dict = load_params ( input_csv_path ) for key , value in params_to_override_dict . items ( ) : all_params [ key ] = value return all_params
If there exists an `input.csv` in the job directory, loads those arguments
and overrides their default values from `features.py`.
If there exists an ` input . csv ` in the job directory loads those arguments and overrides their default values from ` features . py ` .
"""
    If there exists an `input.csv` in the job directory, loads those arguments
    and overrides their default values from `features.py`.
    """ # check if there exists and `input.csv` in working directory # override default values for parameters in `input.csv`
all_params
dict