REGISTER NOW: DdS Autumn School! 🇨🇭 Grosshöchstetten (Switzerland) 🗓️ 6.-11. October 2024

bw2io.importers.excel_lcia#

Module Contents#

Classes#

CSVLCIAImporter

Generic CSV LCIA importer.

ExcelLCIAImporter

Generic Excel LCIA importer.

Functions#

as_dicts(obj)

Converts a 2D list to a list of dictionaries.

class bw2io.importers.excel_lcia.CSVLCIAImporter(filepath, name, description, unit, **metadata)[source]#

Bases: ExcelLCIAImporter

Inheritance diagram of bw2io.importers.excel_lcia.CSVLCIAImporter

Generic CSV LCIA importer.

Attributes:

format (str): The file format. extractor (class): The file extractor class.

Initializes the ExcelLCIAImporter object.

Args:

filepath (str): The path to the Excel file. name (tuple): The name of the LCIA method. description (str): The description of the LCIA method. unit (str): The unit of the LCIA method. **metadata: The metadata associated with the LCIA method.

extractor[source]#
format = 'CSV'[source]#
class bw2io.importers.excel_lcia.ExcelLCIAImporter(filepath, name, description, unit, **metadata)[source]#

Bases: bw2io.importers.base_lcia.LCIAImporter

Inheritance diagram of bw2io.importers.excel_lcia.ExcelLCIAImporter

Generic Excel LCIA importer.

Attributes:

format (str): The file format. The default format is CSV. extractor (class): The file extractor class.

Initializes the ExcelLCIAImporter object.

Args:

filepath (str): The path to the Excel file. name (tuple): The name of the LCIA method. description (str): The description of the LCIA method. unit (str): The unit of the LCIA method. **metadata: The metadata associated with the LCIA method.

extractor[source]#
format = 'Excel'[source]#
bw2io.importers.excel_lcia.as_dicts(obj)[source]#

Converts a 2D list to a list of dictionaries.

Args:

obj (list): The 2D list to be converted.

Returns:

list: The list of dictionaries.