Skip to content

Commit c094ff2

Browse files
committed
updating download from zenodo
1 parent 312f405 commit c094ff2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

phylophlan/phylophlan.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
'Claudia Mengoni ([email protected]), '
77
'Mattia Bolzan ([email protected]), '
88
'Nicola Segata ([email protected])')
9-
__version__ = '3.0.54'
10-
__date__ = '26 August 2020'
9+
__version__ = '3.0.55'
10+
__date__ = '28 August 2020'
1111

1212

1313
import os
@@ -3117,11 +3117,13 @@ def download_and_unpack_db(db_name, db_url, db_md5, folder, update=False, verbos
31173117
error('database directory "{}" is not writeable, please modify the permissions'.format(folder), exit=True)
31183118

31193119
# download database
3120-
tar_file = os.path.join(folder, os.path.basename(db_url).replace('?dl=1', ''))
3120+
# tar_file = os.path.join(folder, os.path.basename(db_url).replace('?dl=1', ''))
3121+
tar_file = os.path.join(folder, os.path.basename(db_url).replace('?download=1', ''))
31213122
download(db_url, tar_file, overwrite=update, verbose=verbose)
31223123

31233124
# download MD5 checksum
3124-
md5_file = os.path.join(folder, os.path.basename(db_md5).replace('?dl=1', ''))
3125+
# md5_file = os.path.join(folder, os.path.basename(db_md5).replace('?dl=1', ''))
3126+
md5_file = os.path.join(folder, os.path.basename(db_md5).replace('?download=1', ''))
31253127
download(db_md5, md5_file, overwrite=update, verbose=verbose)
31263128

31273129
md5_md5 = None

0 commit comments

Comments
 (0)