Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Nov 3, 2023
1 parent 38d84a3 commit bad7f5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion premise/activity_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def get_mapping(filepath: Path, var: str, model: str = None) -> dict:
return mapping



def act_fltr(
database: List[dict],
fltr: Union[str, List[str]] = None,
Expand Down
7 changes: 5 additions & 2 deletions premise/ecoinvent_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
from .filesystem_constants import DATA_DIR, DIR_CACHED_DB, IAM_OUTPUT_DIR, INVENTORY_DIR
from .fuels import _update_fuels
from .inventory_imports import AdditionalInventory, DefaultInventory
from .metals import Metals, _update_metals
from .report import generate_change_report, generate_summary_report
from .steel import _update_steel
from .metals import Metals, _update_metals
from .transport import _update_vehicles
from .utils import (
clear_existing_cache,
Expand Down Expand Up @@ -1083,7 +1083,10 @@ def update_metals(self) -> None:
]
else:
for scenario in self.scenarios:
if "exclude" not in scenario or "update_metals" not in scenario["exclude"]:
if (
"exclude" not in scenario
or "update_metals" not in scenario["exclude"]
):
metals = Metals(
database=scenario["database"],
year=scenario["year"],
Expand Down
1 change: 0 additions & 1 deletion premise/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ def fetch_proxies(
ds_name, ds_ref_prod = [None, None]

for region in d_iam_to_eco:

# build filters
if exact_match is True:
filters = [
Expand Down

0 comments on commit bad7f5a

Please sign in to comment.