Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 4f22208

Browse files
committed
use logger instead of print
1 parent fc283d3 commit 4f22208

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

workflow/scripts/modify_industry_demand.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@
7070
.multiply(1000)
7171
)
7272

73-
print(
73+
logger.info(
7474
"German industry demand before modification",
75+
)
76+
logger.info(
7577
existing_industry.loc[
7678
"DE",
7779
[
@@ -86,7 +88,6 @@
8688
"Ceramics & other NMM",
8789
],
8890
],
89-
sep="\n",
9091
)
9192

9293
# write Cement, Ammonia and Methanol directly to dataframe
@@ -130,8 +131,9 @@
130131
"DE", ["Electric arc", "Integrated steelworks", "DRI + Electric arc"]
131132
] = (ratio * ariadne.loc["Production|Steel", year])
132133

133-
print(
134-
"German demand after modification",
134+
logger.info(
135+
"German demand after modification")
136+
logger.info(
135137
existing_industry.loc[
136138
"DE",
137139
[
@@ -146,7 +148,6 @@
146148
"Ceramics & other NMM",
147149
],
148150
],
149-
sep="\n",
150151
)
151152

152153
existing_industry.to_csv(

0 commit comments

Comments
 (0)