bw2data.compat#

Module Contents#

Classes#

Mapping

A dictionary that maps object ids, like ("Ecoinvent 2.2", 42), to integers.

Functions#

get_database_filepath(functional_unit)

Get filepaths for all databases in supply chain of functional_unit

prepare_lca_inputs([demand, method, weighting, ...])

translate_key(key)

unpack(dct)

class bw2data.compat.Mapping[source]#

A dictionary that maps object ids, like ("Ecoinvent 2.2", 42), to integers.

Used only for backwards compatibility; preferred method is now to look up the ids of activities directly in the SQlite database.

add(keys)[source]#
delete(keys)[source]#
bw2data.compat.get_database_filepath(functional_unit)[source]#

Get filepaths for all databases in supply chain of functional_unit

bw2data.compat.prepare_lca_inputs(demand=None, method=None, weighting=None, normalization=None, demands=None, remapping=True, demand_database_last=True)[source]#
bw2data.compat.translate_key(key)[source]#
bw2data.compat.unpack(dct)[source]#