mescal.generate_lcia_obj_ampl
Functions
|
Create an AMPL mod file containing the LCIA equations. This method has been specifically designed for the |
Module Contents
- mescal.generate_lcia_obj_ampl.generate_mod_file_ampl(self, impact_abbrev: pandas.DataFrame, lcia_methods: list[str], specific_lcia_categories: list[str] = None, specific_lcia_abbrev: list[str] = None, assessment_type: str = 'esm', path: str = None, file_name: str = None, metadata: dict = None, energyscope_version: str = 'epfl') None[source]
Create an AMPL mod file containing the LCIA equations. This method has been specifically designed for the EnergyScope model. Currently, it supports the ‘epfl’ and ‘core’ versions of EnergyScope.
- Parameters:
impact_abbrev (pandas.DataFrame) – dataframe containing the impact abbreviations of the LCIA method
lcia_methods (list[str]) – LCIA methods to be used
specific_lcia_categories (list[str]) – specific LCIA categories to be used
specific_lcia_abbrev (list[str]) – specific LCIA abbreviations to be used
assessment_type (str) – type of assessment, can be ‘esm’ for the full LCA database, ‘direct emissions’ for the computation of direct emissions only, or ‘territorial emissions’ for territorial and abroad emissions. Default is ‘esm’.
path (str) – path where the mod file will be saved. Default is results_path_file from the ESM class.
file_name (str) – name of the .mod file. Default is ‘objectives’ if assessment_type is ‘esm’, ‘objectives_direct’ if assessment_type is ‘direct emissions’, and ‘objectives_territorial’ if assessment_type is ‘territorial emissions’.
metadata (dict) – dictionary containing the metadata to be written at the beginning of the file
energyscope_version (str) – version of EnergyScope model used, can be ‘epfl’ or ‘core’
- Returns:
None (writes the file)
- Return type:
None