From 0072aba11c11e2cb52e80b52f90cfea5d0d5124e Mon Sep 17 00:00:00 2001 From: "j.aschauer" Date: Thu, 30 Nov 2023 09:36:56 +0100 Subject: [PATCH] change defaults for transport and output unit --- app/sidebar.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/sidebar.py b/app/sidebar.py index 09c4d435..023fce5b 100644 --- a/app/sidebar.py +++ b/app/sidebar.py @@ -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( @@ -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(