bw2data.configuration#

Attributes#

Classes#

Module Contents#

class bw2data.configuration.Config[source]#

Bases: pydantic_settings.BaseSettings

_windows: bool[source]#
backends: dict[source]#
property biosphere[source]#

Get name for biosphere database from user preferences.

Default name is biosphere3; change this by changing config.p["biosphere_database"].

cache: dict[source]#
property global_location[source]#

Get name for global location from user preferences.

Default name is GLO; change this by changing config.p["global_location"].

metadata: list = [][source]#
model_config[source]#
sqlite3_databases: list = [][source]#
version: int = 3[source]#
class bw2data.configuration.MatrixLabels[source]#

Bases: pydantic_settings.BaseSettings

reload(fp: pathlib.Path) None[source]#

Load new .env file and overwrite settings

biosphere_edge_default: str = 'biosphere'[source]#
biosphere_edge_types: List[str] = ['biosphere'][source]#
biosphere_node_default: str = 'emission'[source]#
chimaera_node_default: str = 'processwithreferenceproduct'[source]#
consumption_edge_default: str = 'technosphere'[source]#
property edge_types: List[str][source]#
property implicit_production_allowed_node_types[source]#
property lci_edge_types: List[str][source]#
lci_node_types: List[str] = ['process', 'product', 'processwithreferenceproduct', 'multifunctional'][source]#
model_config[source]#
multifunctional_node_default: str = 'multifunctional'[source]#
property node_types: List[str][source]#
other_edge_types: List[str] = [][source]#
other_node_types: List[str] = [][source]#
process_node_default: str = 'process'[source]#
process_node_types: List[str] = ['process', 'processwithreferenceproduct'][source]#
product_node_default: str = 'product'[source]#
product_node_types: List[str] = ['product'][source]#
production_edge_default: str = 'production'[source]#
substitution_edge_default: str = 'substitution'[source]#
substitution_edge_types: List[str] = ['substitution'][source]#
technosphere_negative_edge_types: List[str] = ['technosphere', 'generic consumption'][source]#
technosphere_positive_edge_types: List[str] = ['production', 'generic production', 'substitution'][source]#
class bw2data.configuration.TypoSettings[source]#

Bases: pydantic_settings.BaseSettings

edge_keys: List[str] = ['shape', 'temporal_distribution', 'activity', 'amount', 'classifications', 'code', 'comment',...[source]#
edge_types: List[str] = ['biosphere', 'generic consumption', 'generic production', 'production', 'substitution', 'technosphere'][source]#
model_config[source]#
node_keys: List[str] = ['CAS number', 'activity', 'activity type', 'authors', 'categories', 'classifications', 'code',...[source]#
node_types: List[str] = ['economic', 'emission', 'inventory indicator', 'multifunctional', 'natural resource',...[source]#
bw2data.configuration.config[source]#
bw2data.configuration.labels[source]#
bw2data.configuration.typo_settings[source]#