bw2io.strategies.biosphere#

Module Contents#

Functions#

drop_unspecified_subcategories(db)

Drop subcategories if they are in the following:

ensure_categories_are_tuples(db)

normalize_biosphere_categories(db[, lcia])

Normalize biosphere categories to ecoinvent 3.1 standard

normalize_biosphere_names(db[, lcia])

Normalize biosphere flow names to ecoinvent 3.1 standard.

strip_biosphere_exc_locations(db)

Biosphere flows don't have locations - if any are included they can confuse linking

bw2io.strategies.biosphere.drop_unspecified_subcategories(db)[source]#

Drop subcategories if they are in the following: * unspecified * (unspecified) * '' (empty string) * None

bw2io.strategies.biosphere.ensure_categories_are_tuples(db)[source]#
bw2io.strategies.biosphere.normalize_biosphere_categories(db, lcia=False)[source]#

Normalize biosphere categories to ecoinvent 3.1 standard

bw2io.strategies.biosphere.normalize_biosphere_names(db, lcia=False)[source]#

Normalize biosphere flow names to ecoinvent 3.1 standard.

Assumes that each dataset and each exchange have a name. Will change names even if exchange is already linked.

bw2io.strategies.biosphere.strip_biosphere_exc_locations(db)[source]#

Biosphere flows don’t have locations - if any are included they can confuse linking