From bf3aa4f9020e9b1e3563b1bb7baf8e260aede5ad Mon Sep 17 00:00:00 2001 From: SabineHaas Date: Thu, 14 Nov 2024 15:50:03 +0100 Subject: [PATCH] Add bug fix for biogas treatment --- data_adapter_oemof/adapters.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data_adapter_oemof/adapters.py b/data_adapter_oemof/adapters.py index 3e4cd5b..57dcc4b 100644 --- a/data_adapter_oemof/adapters.py +++ b/data_adapter_oemof/adapters.py @@ -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():