Skip to content

Commit

Permalink
Update streamlit_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-ponce authored Mar 28, 2024
1 parent 8235b5f commit cca788c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ def download_tutorial():
st.session_state.units = st.session_state.std_information[['peak_label','unit']].fillna('')
st.session_state.std_information = st.session_state.std_information.drop(columns = ['unit'])
else:
st.write("missing units column in the standard information table")

st.write("missing units column in the standard information table, µM will be set as default")
st.session_state.units = st.session_state.std_information[['peak_label']]
st.session_state.units['unit'] = 'µM'

if 'internal_standard_injection_concentration' in st.session_state.std_information.columns:
st.session_state.internal_standard = st.session_state.std_information[['peak_label','internal_standard_injection_concentration']]
st.session_state.std_information = st.session_state.std_information.drop(columns = ['internal_standard_injection_concentration'])
Expand Down

0 comments on commit cca788c

Please sign in to comment.