From 32a883df950aae7856b0e7c2f9fc42fd220bd3a8 Mon Sep 17 00:00:00 2001
From: DIANE <abderrahim.diane@cefe.cnrs.fr>
Date: Fri, 9 Aug 2024 12:53:24 +0200
Subject: [PATCH] sample selection

---
 src/pages/1-samples_selection.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/pages/1-samples_selection.py b/src/pages/1-samples_selection.py
index 0c06b2b..02bf29d 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)
-- 
GitLab