Skip to content

Commit

Permalink
change defaults for transport and output unit
Browse files Browse the repository at this point in the history
  • Loading branch information
joAschauer committed Nov 30, 2023
1 parent 0eebf08 commit 0072aba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ def make_sidebar(api: PtxboaAPI):
)
st.session_state["transport"] = st.sidebar.radio(
"Mode of transportation (for selected supply country):",
api.get_dimension("transport").index,
["Ship", "Pipeline"],
horizontal=True,
help="Help text",
index=1, # 'Pipeline' as default
)
if st.session_state["transport"] == "Ship":
st.session_state["ship_own_fuel"] = st.sidebar.toggle(
Expand All @@ -155,9 +156,10 @@ def make_sidebar(api: PtxboaAPI):
)
st.session_state["output_unit"] = st.sidebar.radio(
"Unit for delivered costs:",
api.get_dimension("output_unit").index,
["USD/MWh", "USD/t"],
horizontal=True,
help="Help text",
index=1, # 'USD/t' as default
)

st.sidebar.toggle(
Expand Down

0 comments on commit 0072aba

Please sign in to comment.