Skip to content

Commit

Permalink
Add bug fix for biogas treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
SabineHaas committed Nov 14, 2024
1 parent e487795 commit bf3aa4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data_adapter_oemof/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ def default_post_mapping_calculations(self, mapped_defaults):
)
elif self.process_name[-1] == "1" or self.process_name[-1] == "2":
mapped_defaults["expandable"] = True
elif "x2x_other_biogas_treatment" in self.process_name:
mapped_defaults["expandable"] = True
logging.warning(
"Setting capacity cost of x2x_other_biogas_treatment to 0 as "
"it is missing in the data.")
mapped_defaults["capacity_cost"] = 0

# II:
if "amount" in mapped_defaults.keys():
Expand Down

0 comments on commit bf3aa4f

Please sign in to comment.