bw2io.strategies.lcia#

Module Contents#

Functions#

add_activity_hash_code(data)

Add code field to characterization factors using activity_hash, if code not already present.

drop_unlinked_cfs(data)

Drop CFs which don't have input attribute

fix_ecoinvent_38_lcia_implementation(data)

Ecoinvent 3.8 LCIA implmentation uses some flow names from 3.7.

match_subcategories(data, biosphere_db_name[, remove])

Given a characterization with a top-level category, e.g. ('air',), find all biosphere flows with the same top-level categories, and add CFs for these flows as well. Doesn't replace CFs for existing flows with multi-level categories. If remove, also delete the top-level CF, but only if it is unlinked.

rationalize_method_names(data)

set_biosphere_type(data)

Set CF types to 'biosphere', to keep compatibility with LCI strategies.

bw2io.strategies.lcia.add_activity_hash_code(data)[source]#

Add code field to characterization factors using activity_hash, if code not already present.

bw2io.strategies.lcia.drop_unlinked_cfs(data)[source]#

Drop CFs which don’t have input attribute

bw2io.strategies.lcia.fix_ecoinvent_38_lcia_implementation(data)[source]#

Ecoinvent 3.8 LCIA implmentation uses some flow names from 3.7.

Update these when possible, delete when not.

bw2io.strategies.lcia.match_subcategories(data, biosphere_db_name, remove=True)[source]#

Given a characterization with a top-level category, e.g. ('air',), find all biosphere flows with the same top-level categories, and add CFs for these flows as well. Doesn’t replace CFs for existing flows with multi-level categories. If remove, also delete the top-level CF, but only if it is unlinked.

bw2io.strategies.lcia.rationalize_method_names(data)[source]#
bw2io.strategies.lcia.set_biosphere_type(data)[source]#

Set CF types to ‘biosphere’, to keep compatibility with LCI strategies.

This will overwrite existing type values.