Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jul 12, 2024
1 parent e30f181 commit 819cfa3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions premise/cement.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,7 @@ def build_clinker_production_datasets(self) -> list:
name="clinker production",
ref_prod="clinker",
production_variable="cement, dry feed rotary kiln",
geo_mapping={
r: "Europe without Switzerland" for r in self.regions
}
geo_mapping={r: "Europe without Switzerland" for r in self.regions},
)

for variable in variables:
Expand Down Expand Up @@ -378,8 +376,9 @@ def build_clinker_production_datasets(self) -> list:
d["energy"] for d in energy_details.values()
)

if region=="WEU":
if region == "WEU":
from pprint import pprint

print(region, current_energy_input_per_ton_clinker)
pprint(energy_details)

Expand Down Expand Up @@ -427,7 +426,7 @@ def build_clinker_production_datasets(self) -> list:
current_energy_input_per_ton_clinker += (
energy_input_waste_fuel * 1000
)
if region=="WEU":
if region == "WEU":
print(current_energy_input_per_ton_clinker)

# add the waste fuel input to the dataset
Expand Down Expand Up @@ -466,7 +465,7 @@ def build_clinker_production_datasets(self) -> list:
location=dataset["location"],
)

if region=="WEU":
if region == "WEU":
print(scaling_factor)

new_energy_input_per_ton_clinker = 0
Expand All @@ -477,7 +476,7 @@ def build_clinker_production_datasets(self) -> list:
new_energy_input_per_ton_clinker = (
current_energy_input_per_ton_clinker * scaling_factor
)
if region=="WEU":
if region == "WEU":
print("new", new_energy_input_per_ton_clinker)

# put a floor value of 3100 kj/kg clinker
Expand All @@ -492,7 +491,7 @@ def build_clinker_production_datasets(self) -> list:
/ current_energy_input_per_ton_clinker
)

if region=="WEU":
if region == "WEU":
print("new scaling factor", scaling_factor)

# but if efficient kiln, set the energy input to 3100 kJ/kg clinker
Expand Down

0 comments on commit 819cfa3

Please sign in to comment.