Skip to content
Snippets Groups Projects
Commit 3762251d authored by DIANE's avatar DIANE
Browse files

comments

parent 04ee857c
No related branches found
No related tags found
No related merge requests found
...@@ -615,18 +615,16 @@ if not sam.empty: ...@@ -615,18 +615,16 @@ if not sam.empty:
shutil.make_archive(base_name = zipname.split('.')[0],format = "zip",root_dir = "./Report", base_dir = "figures")# create zip containing figures and report shutil.make_archive(base_name = zipname.split('.')[0],format = "zip",root_dir = "./Report", base_dir = "figures")# create zip containing figures and report
file_path = Path("./temp/"+zipname) file_path = Path("./temp/"+zipname)
sam.to_csv("./"+zipname,sep = ';', sam.to_csv("./"+zipname,sep = ';', encoding='utf-8', mode='a',
encoding='utf-8', mode='a', compression = dict(method='zip',archive_name=f"selected subset for reference analysis_{userfilename}{date_time}.csv"))### export the table of selected subset
compression=dict(method='zip',archive_name=f"selected subset for reference analysis_{userfilename}{date_time}.csv"))
with zipfile.ZipFile("./"+zipname, 'a') as newzip: with zipfile.ZipFile("./"+zipname, 'a') as newzip:
newzip.write("./Report/report.pdf", arcname="report.pdf") newzip.write("./Report/report.pdf", arcname="report.pdf") # add report to the zipfile
newzip.write("./Report/datasets/"+os.listdir("./Report/datasets")[0], arcname=os.listdir("./Report/datasets")[0]) newzip.write("./Report/datasets/"+os.listdir("./Report/datasets")[0], arcname=os.listdir("./Report/datasets")[0]) # add the dataset to the zipfile
### move the .zip file to the temp directory shutil.move('./'+zipname,'./temp/'+ zipname) # move the .zip file to the temp directory
shutil.move('./'+zipname,'./temp/'+ zipname)
# Hash the results and # Hash the results
a ='' a =''
for i in (data_file.name, dim_red_method,clus_method, Nb_ech, tcr.astype(str)): for i in (data_file.name, dim_red_method,clus_method, Nb_ech, tcr.astype(str)):
a += str(i) 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