diff --git a/content/documentation.py b/content/documentation.py index 8dc95ebb..c308213b 100644 --- a/content/documentation.py +++ b/content/documentation.py @@ -1,9 +1,9 @@ import streamlit as st -from src.common.common import page_setup, save_params +from src.common.common import page_setup from pathlib import Path from docs.toppframework import content as topp_framework_content -params = page_setup() +page_setup() st.title("Documentation") @@ -106,7 +106,4 @@ if page == pages[5]: with open(Path("docs", "deployment.md"), "r", encoding="utf-8") as f: content = f.read() - st.markdown(content) - - -save_params(params) + st.markdown(content) \ No newline at end of file diff --git a/content/download_section.py b/content/download_section.py index 0ce00738..8856a7b3 100644 --- a/content/download_section.py +++ b/content/download_section.py @@ -3,10 +3,10 @@ from pathlib import Path import shutil -from src.common.common import page_setup, save_params +from src.common.common import page_setup from zipfile import ZipFile, ZIP_DEFLATED -params = page_setup() +page_setup() # Define output folder here; all subfolders will be handled as downloadable # directories @@ -71,6 +71,4 @@ with columns[2]: if st.button(f"🗑️ {directory.name}", use_container_width=True): shutil.rmtree(directory) - st.rerun() - -save_params(params) + st.rerun() \ No newline at end of file diff --git a/content/quickstart.py b/content/quickstart.py index 43e3e4f7..a2a8eac8 100644 --- a/content/quickstart.py +++ b/content/quickstart.py @@ -21,9 +21,9 @@ from pathlib import Path import streamlit as st -from src.common.common import page_setup, v_space, save_params +from src.common.common import page_setup, v_space -params = page_setup(page="main") +page_setup(page="main") st.markdown("# 👋 Quick Start") st.markdown("## Template for OpenMS web apps using the **streamlit** framework") @@ -163,5 +163,3 @@ label="How to run any command line tool as subprocess from within the OpenMS web app.", icon="➡️", ) - -save_params(params) diff --git a/content/raw_data_viewer.py b/content/raw_data_viewer.py index a5c0415e..d788e25d 100755 --- a/content/raw_data_viewer.py +++ b/content/raw_data_viewer.py @@ -2,7 +2,7 @@ import streamlit as st -from src.common.common import page_setup, save_params +from src.common.common import page_setup from src import view @@ -42,6 +42,3 @@ view.view_spectrum() with tabs[2]: view.view_bpc_tic() - - -save_params(params) diff --git a/content/run_example_workflow.py b/content/run_example_workflow.py index 5d827965..49e70e9c 100755 --- a/content/run_example_workflow.py +++ b/content/run_example_workflow.py @@ -56,7 +56,4 @@ -mzmlfileworkflow.result_section(result_dir) - - -save_params(params) +mzmlfileworkflow.result_section(result_dir) \ No newline at end of file diff --git a/content/topp_workflow_execution.py b/content/topp_workflow_execution.py index fbf852d0..4da0f3a7 100644 --- a/content/topp_workflow_execution.py +++ b/content/topp_workflow_execution.py @@ -1,5 +1,5 @@ import streamlit as st -from src.common.common import page_setup, save_params +from src.common.common import page_setup from src.Workflow import Workflow @@ -11,5 +11,4 @@ wf.show_execution_section() -save_params(params) diff --git a/content/topp_workflow_file_upload.py b/content/topp_workflow_file_upload.py index 86c5f1f4..de8916a8 100644 --- a/content/topp_workflow_file_upload.py +++ b/content/topp_workflow_file_upload.py @@ -1,5 +1,5 @@ import streamlit as st -from src.common.common import page_setup, save_params +from src.common.common import page_setup from src.Workflow import Workflow @@ -11,5 +11,4 @@ wf.show_file_upload_section() -save_params(params) diff --git a/content/topp_workflow_parameter.py b/content/topp_workflow_parameter.py index 2e316848..cb0573d6 100644 --- a/content/topp_workflow_parameter.py +++ b/content/topp_workflow_parameter.py @@ -1,5 +1,5 @@ import streamlit as st -from src.common.common import page_setup, save_params +from src.common.common import page_setup from src.Workflow import Workflow @@ -10,5 +10,3 @@ st.title(wf.name) wf.show_parameter_section() - -save_params(params) diff --git a/content/topp_workflow_results.py b/content/topp_workflow_results.py index 0314f348..687edc24 100644 --- a/content/topp_workflow_results.py +++ b/content/topp_workflow_results.py @@ -1,5 +1,5 @@ import streamlit as st -from src.common.common import page_setup, save_params +from src.common.common import page_setup from src.Workflow import Workflow @@ -11,4 +11,3 @@ wf.show_results_section() -save_params(params)