Spaces:
Sleeping
Sleeping
Daniel Varga
commited on
Commit
•
7607114
1
Parent(s):
02d3062
minor html fix
Browse files
app.py
CHANGED
@@ -485,8 +485,8 @@ def ui_refresh(solar_cell_num, bess_nominal_capacity, fixed_consumption):
|
|
485 |
|
486 |
network, solar, bess = consumptions_in_mwh.sum(axis=0)
|
487 |
html = "<table>\n"
|
488 |
-
for column, column_name in zip((network, solar, bess), ("
|
489 |
-
html += f"<tr><td>Yearly consumption
|
490 |
html += "</table>"
|
491 |
|
492 |
return (html, fig_monthly, fig1, fig2)
|
|
|
485 |
|
486 |
network, solar, bess = consumptions_in_mwh.sum(axis=0)
|
487 |
html = "<table>\n"
|
488 |
+
for column, column_name in zip((network, solar, bess), ("Network", "Solar directly", "Solar via BESS")):
|
489 |
+
html += f"<tr><td>Yearly consumption served by {column_name}: </td><td>{column:0.2f} MWh</td></tr>\n"
|
490 |
html += "</table>"
|
491 |
|
492 |
return (html, fig_monthly, fig1, fig2)
|