Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Aug 18, 2023
1 parent ca29072 commit 50031ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions premise/ecoinvent_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def _update_all(
def _export_to_matrices(obj):
obj.export_db_to_matrices()


def _export_to_simapro(obj):
obj.export_db_to_simapro()

Expand Down Expand Up @@ -1448,8 +1449,7 @@ def write_datapackage(self, name: str = f"datapackage_{date.today()}"):

cached_inventories.extend(extra_inventories)
list_scenarios = ["original"] + [
f"{s['model']} - {s['pathway']} - {s['year']}"
for s in self.scenarios
f"{s['model']} - {s['pathway']} - {s['year']}" for s in self.scenarios
]

build_datapackage(
Expand Down
5 changes: 3 additions & 2 deletions premise/fuels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,9 @@ def fetch_fuel_share(
)

if np.isnan(fuel_share):
print(f"Warning: incorrect fuel share for {fuel} in {region} (-> set to 0%).")
print(
f"Warning: incorrect fuel share for {fuel} in {region} (-> set to 0%)."
)
fuel_share = 0

return float(fuel_share)
Expand Down Expand Up @@ -2202,7 +2204,6 @@ def generate_regional_fuel_market(
.sum(dim=["variables"])
== 0
):

if "hydrogen" in dataset["name"].lower():
prod_vars = [
"hydrogen, nat. gas",
Expand Down

0 comments on commit 50031ac

Please sign in to comment.