Skip to content

Commit 93784d2

Browse files
committed
black
1 parent ec570ed commit 93784d2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

idaes/models_extra/power_generation/flowsheets/subcritical_power_plant/subcritical_power_plant.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,17 +2212,13 @@ def print_pfd_results(m):
22122212
tag_formats = {}
22132213
for i, s in sd.items():
22142214
tags[i + "_Fmass"] = s.flow_mass
2215-
tag_formats[i + "_Fmass"] = lambda x: (
2216-
"{:.1f}" if x >= 10 else "{:.2f}"
2217-
)
2215+
tag_formats[i + "_Fmass"] = lambda x: ("{:.1f}" if x >= 10 else "{:.2f}")
22182216
tags[i + "_F"] = s.flow_mol
22192217
tag_formats[i + "_F"] = "{:,.0f}"
22202218
tags[i + "_T"] = s.temperature
22212219
tag_formats[i + "_T"] = "{:,.0f}"
22222220
tags[i + "_P_kPa"] = s.pressure
2223-
tag_formats[i + "_P_kPa"] = lambda x: (
2224-
"{:,.0f}" if x >= 100 else "{:.2f}"
2225-
)
2221+
tag_formats[i + "_P_kPa"] = lambda x: ("{:,.0f}" if x >= 100 else "{:.2f}")
22262222
try:
22272223
tags[i + "_hmass"] = s.enth_mass
22282224
tag_formats[i + "_hmass"] = "{:,.0f}"

0 commit comments

Comments
 (0)