bw2data.compat#

Module Contents#

Classes#

Mapping

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

_Databases

Functions#

get_database_filepath(functional_unit)

Get filepaths for all databases in supply chain of functional_unit

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

Prepare LCA input arguments in Brightway 2.5 style.

translate_key(key)

unpack(dct)

Attributes#

databases

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]#
class bw2data.compat._Databases[source]#
clean()[source]#
flush()[source]#
set_dirty(name)[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]#

Prepare LCA input arguments in Brightway 2.5 style.

bw2data.compat.translate_key(key)[source]#
bw2data.compat.unpack(dct)[source]#
bw2data.compat.databases[source]#