Skip to content

Commit

Permalink
Make naming of emission buses more open
Browse files Browse the repository at this point in the history
  • Loading branch information
SabineHaas committed Oct 10, 2024
1 parent d61e333 commit 2491680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/oemof/tabular/facades/commodity_ghg.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def init_emission_factors(self, buses, kwargs):
emission_factors = {}
for key, value in list(kwargs.items()):
if key.startswith("emission_factor"):
bus_label = key.split("_")[-1]
bus_label = key.removeprefix("emission_factor_")
try:
bus = [
bus
Expand Down
2 changes: 1 addition & 1 deletion src/oemof/tabular/facades/conversion_ghg.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def init_emission_factors(self, buses, kwargs):
"""Adds emission factors as `conversion_factors"""
for key, value in list(kwargs.items()):
if key.startswith("emission_factor"):
bus_label = key.split("_")[-1]
bus_label = key.removeprefix("emission_factor_")
try:
bus = [
bus
Expand Down

0 comments on commit 2491680

Please sign in to comment.