Skip to content

Commit

Permalink
Fix download of MTBLS data files
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Nov 6, 2023
1 parent 4d3c9b3 commit a44f171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def download_mtbls_study(study_id, dl_directory=None):
with contextlib.closing(ftplib.FTP("ftp.ebi.ac.uk")) as ebi_ftp:
ebi_ftp.login()
ebi_ftp.cwd(STUDY_DIR)
files_list = [os.path.join(STUDY_DIR, study_file) for study_file in ebi_ftp.nlst() if study_file != "audit"]
files_list = [os.path.join(STUDY_DIR, study_file) for study_file in ebi_ftp.nlst() if study_file.endswith(".nmrML")]

pool = multiprocessing.pool.Pool(multiprocessing.cpu_count()*8)
pool.map(_download_mtbls_file, [(f, dl_directory) for f in files_list])
Expand Down

0 comments on commit a44f171

Please sign in to comment.