Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/TIAM' into TIAM
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 3, 2023
2 parents 9f28144 + a46ca22 commit f660972
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions premise/activity_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ class InventorySet:
These functions return the result of applying :func:`act_fltr` to the filter dictionaries.
"""

def __init__(self, database: List[dict], version: str = None, model: str = None) -> None:
def __init__(
self, database: List[dict], version: str = None, model: str = None
) -> None:
self.database = database
self.version = version
self.model = model
Expand Down Expand Up @@ -261,7 +263,9 @@ def generate_sets_from_filters(self, filtr: dict, database=None) -> dict:
for tech, fltr in filtr.items()
}

mapping = {tech: {act["name"] for act in actlst} for tech, actlst in techs.items()}
mapping = {
tech: {act["name"] for act in actlst} for tech, actlst in techs.items()
}

# check if all keys have values
# if not, print warning
Expand Down
2 changes: 1 addition & 1 deletion premise/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ def create_region_specific_power_plants(self):
"Oil ST",
"Oil CC",
"Coal CF 80-20",
"Coal CF 50-50"
"Coal CF 50-50",
]

list_datasets_to_duplicate = [
Expand Down

0 comments on commit f660972

Please sign in to comment.