Skip to content

Commit

Permalink
Add additional configuration labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Sep 12, 2024
1 parent d4e97b7 commit 47bbe5f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions bw2data/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@


class MatrixLabels(BaseSettings):
node_types: List[Union[str, None]] = ["process", "product", "processwithreferenceproduct", "multifunctional", None]
process_node_types: List[Union[str, None]] = ["process", "processwithreferenceproduct", None]
product_node_types: List[str] = ["product"]

process_node_default: str = "process"
multifunctional_node_default: str = "multifunctional"
chimaera_node_default: str = "processwithreferenceproduct"
product_node_default: str = "product"
biosphere_node_default: str = "emission"
production_edge_default: str = "production"
consumption_edge_default: str = "technosphere"
biosphere_edge_default: str = "biosphere"

process_node_types: List[Union[str, None]] = ["process", None]
node_types: List[Union[str, None]] = ["process", "product", "multifunctional", None]

biosphere_edge_types: List[str] = ["biosphere"]
technosphere_negative_edge_types: List[str] = [
Expand All @@ -25,8 +26,14 @@ class MatrixLabels(BaseSettings):
"generic production",
"substitution",
]
# You should normally use `technosphere_positive_edge_types`, as it includes substitution
substitution_edge_types: List[str] = ["substitution"]

production_edge_default: str = "production"
consumption_edge_default: str = "technosphere"
biosphere_edge_default: str = "biosphere"
substitution_edge_default: str = "substitution"

@property
def edge_types(self):
return sorted(
Expand All @@ -50,8 +57,10 @@ class TypoSettings(BaseSettings):
"economic",
"emission",
"inventory indicator",
"multifunctional",
"natural resource",
"process",
"processwithreferenceproduct",
"product",
]
edge_types: List[str] = [
Expand Down

0 comments on commit 47bbe5f

Please sign in to comment.