bw2io.importers.excel_lcia#

Classes#

CSVLCIAImporter

Generic CSV LCIA importer.

ExcelLCIAImporter

Generic Excel LCIA importer.

Functions#

as_dicts(obj)

Converts a 2D list to a list of dictionaries.

Module Contents#

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

Bases: ExcelLCIAImporter

Generic CSV LCIA importer.

format[source]#

The file format.

Type:

str

extractor[source]#

The file extractor class.

Type:

class

Initializes the ExcelLCIAImporter object.

Parameters:
  • 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

Generic Excel LCIA importer.

format[source]#

The file format. The default format is CSV.

Type:

str

extractor[source]#

The file extractor class.

Type:

class

Initializes the ExcelLCIAImporter object.

Parameters:
  • 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.

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

Converts a 2D list to a list of dictionaries.

Parameters:

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

Returns:

The list of dictionaries.

Return type:

list