bw_graph_tools.graph_traversal.settings
Classes
Graph traversal settings object with reasonable defaults. |
|
Supply Chain Traversal Settings with a functional unit tag |
Module Contents
- class bw_graph_tools.graph_traversal.settings.GraphTraversalSettings[source]
Bases:
pydantic.BaseModelGraph traversal settings object with reasonable defaults.
- Parameters:
cutoff (float) – Cutoff value used to stop graph traversal. Fraction of total score, should be in (0, 1)
biosphere_cutoff (float) – Cutoff value used to determine if a separate biosphere node is added. Fraction of total score.
max_calc (int | None) – Maximum number of inventory calculations to perform
max_depth (int) – Maximum depth in the supply chain traversal. Default is no maximum.
skip_coproducts (bool) – Don’t traverse co-production edges, i.e. production edges other than the reference product
separate_biosphere_flows (bool) – Add separate Flow nodes for important individual biosphere emissions
min_coverage_fraction (float) – Minimum fraction of the total LCA score that must be covered by the traversed nodes. A warning is raised if coverage falls below this value. Should be in (0, 1]. Default is 0.9.
- class bw_graph_tools.graph_traversal.settings.TaggedGraphTraversalSettings[source]
Bases:
GraphTraversalSettingsSupply Chain Traversal Settings with a functional unit tag
- Parameters:
tags (List[str]) – A list of tags to group nodes by