From 04ee857c63d2e412d008e2d0515817b9d93723f6 Mon Sep 17 00:00:00 2001 From: DIANE <abderrahim.diane@cefe.cnrs.fr> Date: Tue, 20 Aug 2024 10:13:15 +0200 Subject: [PATCH] pushing modifications --- src/pages/2-model_creation.py | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/pages/2-model_creation.py b/src/pages/2-model_creation.py index ad94b1f..1cb9368 100644 --- a/src/pages/2-model_creation.py +++ b/src/pages/2-model_creation.py @@ -144,7 +144,7 @@ match file: spectra = pd.DataFrame else: - st.error('Error: The data has not been loaded successfully, please consider tuning the dialect settings !') + st.error('Error: The data has not been loaded successfully, please consider tuning the dialect settings!') # Load .dx file case 'dx': @@ -564,33 +564,3 @@ if Reg: -################################################### BEGIN : Download results #################################################### -date_time = datetime.datetime.now().strftime('_%y_%m_%d_%H_%M_') -# 1- -# 2- -# 3- -# 4- -#5- - -if Reg: - @st.cache_data - def download_res(file,sam): - zipname = f'results{date_time}subset_selection_{file.name.split('.')[0]}.zip' # name of the zipfile - with open('./temp/fname.json', 'w') as f: # dump filename and save it as a .json file - json.dump(zipname, f) - shutil.make_archive(base_name = zipname.split('.')[0],format = "zip",root_dir = "./Report", base_dir = "figures")# create zip containing figures and report - - - - - - - - - - - - -st.subheader('Download the Analysis Results') -# st.download_button('Download', data = fp, file_name = zipname, mime ="application/zip", -# args = None, kwargs = None,type = "primary",use_container_width = True) -- GitLab