Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Apr 4, 2023
1 parent de6df60 commit 71ceadc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions premise/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,17 +376,19 @@ def regionalize_inventories(

# add production volume
if ds.get("production volume variable"):

if ds["production volume variable"] in self.external_scenarios_data[
datapackage_number
]["production volume"].variables.values:
if (
ds["production volume variable"]
in self.external_scenarios_data[datapackage_number][
"production volume"
].variables.values
):
for region, act in new_acts.items():
if (
region in self.external_scenarios_data[
datapackage_number
]["production volume"].region.values
region
in self.external_scenarios_data[datapackage_number][
"production volume"
].region.values
):

act["production volume"] = (
self.external_scenarios_data[datapackage_number][
"production volume"
Expand Down

0 comments on commit 71ceadc

Please sign in to comment.