generate_models module.py

lib.generate_models.generate_evrys_model(paths, param)

This function reads all the intermediate CSV files, adapts the formatting to the structure of the evrys Excel input file, and combines the datasets into one dataframe. It writes the dataframe into an evrys input Excel file. The function would still run even if some files have not been generated. They will simply be skipped.

Parameters
  • paths (dict) – Dictionary including the paths to the intermediate files sites_sub, commodities_regions, process_regions, grid_completed, storage_regions, load_regions, potential_ren, and to the output evrys_model.

  • param (dict) – Dictionary of user preferences, including model_year and technology.

Returns

The XLSX model input file is saved directly in the desired path.

Return type

None

lib.generate_models.generate_urbs_model(paths, param)

This function reads all the intermediate CSV files, adapts the formatting to the structure of the urbs Excel input file, and combines the datasets into one dataframe. It writes the dataframe into an urbs input Excel file. The function would still run even if some files have not been generated. They will simply be skipped.

Parameters
  • paths (dict) – Dictionary including the paths to the intermediate files sites_sub, commodities_regions, process_regions, assumptions_flows, grid_completed, storage_regions, load_regions, potential_ren, and to the output urbs_model.

  • param (dict) – Dictionary of user preferences, including model_year and technology.

Returns

The XLSX model input file is saved directly in the desired path.

Return type

None