Skip to content

Commit

Permalink
remove session id from default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaS92 committed Sep 6, 2024
1 parent 23749ba commit caf206e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions alphastats/gui/utils/overview_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@


@st.cache_data
def convert_df(df, user_session_id=st.session_state.user_session_id):
def convert_df(df, user_session_id):
return df.to_csv().encode("utf-8")


@st.cache_data
def get_sample_histogram_matrix(user_session_id=st.session_state.user_session_id):
def get_sample_histogram_matrix(user_session_id):
return st.session_state.dataset.plot_samplehistograms()


@st.cache_data
def get_intensity_distribution_processed(
user_session_id=st.session_state.user_session_id,
):
def get_intensity_distribution_processed(user_session_id):
return st.session_state.dataset.plot_sampledistribution()


@st.cache_data
def get_display_matrix(user_session_id=st.session_state.user_session_id):
def get_display_matrix(user_session_id):
processed_df = pd.DataFrame(
st.session_state.dataset.mat.values,
index=st.session_state.dataset.mat.index.to_list(),
Expand Down

0 comments on commit caf206e

Please sign in to comment.