Skip to content

Commit

Permalink
use expanders in supply region fact sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
markushal committed Dec 11, 2023
1 parent cacec4c commit e77250a
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions app/tab_country_fact_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,22 @@ def _create_fact_sheet_supply_country(context_data: dict):
data = df.loc[df["country_name"] == region_name].iloc[0].to_dict()

st.subheader(f"Fact sheet for {region_name}")
text = (
"**Technical potential for renewable electricity generation:**\n"
f"- {data['source_re_tech_pot_EWI']}: "
f"\t{data['re_tech_pot_EWI']:.0f} TWh/a\n"
f"- {data['source_re_tech_pot_PTXAtlas']}: "
f"\t{data['re_tech_pot_PTXAtlas']:.0f} TWh/a\n"
)

st.markdown(text)

text = (
"**LNG infrastructure:**\n"
f"- {data['lng_export']} export terminals\n"
f"- {data['lng_import']} import terminals.\n\n"
f"*Source: {data['source_lng']}*"
)
with st.expander("**Technical potential for renewable electricity generation**"):
text = (
f"- {data['source_re_tech_pot_EWI']}: "
f"\t{data['re_tech_pot_EWI']:.0f} TWh/a\n"
f"- {data['source_re_tech_pot_PTXAtlas']}: "
f"\t{data['re_tech_pot_PTXAtlas']:.0f} TWh/a\n"
)
st.markdown(text)

st.markdown(text)
with st.expander("**LNG infrastructure**"):
text = (
f"- {data['lng_export']} export terminals\n"
f"- {data['lng_import']} import terminals.\n\n"
f"*Source: {data['source_lng']}*"
)
st.markdown(text)

st.write("TODO: CCS pot, elec prices, H2 strategy")

Expand Down

0 comments on commit e77250a

Please sign in to comment.