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.

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

Inheritance diagram of bw2io.importers.excel_lcia.ExcelLCIAImporter

Generic Excel LCIA importer.

See the documentation.

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.

extractor[source]#
format = 'Excel'[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