Skip to content
Snippets Groups Projects
Commit 04ee857c authored by DIANE's avatar DIANE
Browse files

pushing modifications

parent a9eda16e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment