Skip to content

Commit

Permalink
CHORE: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Lebedev committed Jul 11, 2024
1 parent 992e8e5 commit 99ae051
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alphastats/gui/pages/02_Import Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ def select_sample_column_metadata(df, software):
submitted = st.form_submit_button("Create DataSet")

if submitted:
if len(df[st.session_state.sample_column].to_list()) != len(df[st.session_state.sample_column].unique()):
if len(df[st.session_state.sample_column].to_list()) != len(
df[st.session_state.sample_column].unique()
):
st.error("Sample names have to be unique.")
st.stop()
return True
Expand Down

0 comments on commit 99ae051

Please sign in to comment.