Skip to content

Commit

Permalink
Add emission_factors, conversion_factors and flow_shares to facade data
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Mar 4, 2024
1 parent 87cd290 commit 9222548
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data_adapter_oemof/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,11 @@ class MIMOAdapter(Adapter):
def get_default_parameters(self) -> dict:
defaults = super().get_default_parameters()
defaults["groups"] = self.get_groups()
keywords = ("emission_factor_", "conversion_factor_", "flow_share_")
for key, value in self.data.items():
for keyword in keywords:
if key.startswith(keyword):
defaults[key] = value
return defaults

def get_busses(self) -> dict:
Expand Down

0 comments on commit 9222548

Please sign in to comment.