Skip to content
Snippets Groups Projects
Commit 32a883df authored by DIANE's avatar DIANE
Browse files

sample selection

parent 13756b57
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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