diff --git a/src/pages/1-samples_selection.py b/src/pages/1-samples_selection.py index 0c06b2bb89ba531c8cd13ef2edeab4b65a8d5a3e..02bf29d883e03b45bf095a13899c1a1816bce81f 100644 --- a/src/pages/1-samples_selection.py +++ b/src/pages/1-samples_selection.py @@ -590,7 +590,7 @@ if labels: sel.write(sam) -if not (sam.empty and sam1.empty): +if not sam.empty: Nb_ech = str(n_samples) nb_clu = str(sam1.shape[0]) ################################################### @@ -598,6 +598,7 @@ if not (sam.empty and sam1.empty): latex_report = report.report('Representative subset selection', data_file.name, dim_red_method, clus_method, Nb_ech, ncluster, selection, selection_number, nb_clu,tcr, sam) + @st.cache_data def download_res(file,sam): zipname = f'results{date_time}subset_selection_{file.name.split('.')[0]}.zip' # name of the zipfile @@ -617,6 +618,7 @@ if not (sam.empty and sam1.empty): ### move the .zip file to the temp directory shutil.move('./'+zipname,'./temp/'+ zipname) + # Hash the results and a ='' for i in (data_file.name, dim_red_method,clus_method, Nb_ech, tcr.astype(str)): a += str(i)