Skip to content

Commit 62b178e

Browse files
committed
ENH: Fix figshare urls.
1 parent dfffdb4 commit 62b178e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

antspymm/mm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,7 +3186,7 @@ def mv_subfolder_files(folder, verbose=False):
31863186
shutil.rmtree(os.path.join(root, dir))
31873187

31883188
def download_data( version ):
3189-
url = "https://figshare.com/ndownloader/articles/16912366/versions/" + str(version)
3189+
url = "https://ndownloader.figshare.com/articles/16912366/versions/" + str(version)
31903190
target_file_name = "16912366.zip"
31913191
target_file_name_path = tf.keras.utils.get_file(target_file_name, url,
31923192
cache_subdir=DATA_PATH, extract = True )
@@ -3240,7 +3240,7 @@ def get_models( version=3, force_download=True ):
32403240
os.makedirs(DATA_PATH, exist_ok=True)
32413241

32423242
def download_data( version ):
3243-
url = "https://figshare.com/ndownloader/articles/21718412/versions/"+str(version)
3243+
url = "https://ndownloader.figshare.com/articles/21718412/versions/"+str(version)
32443244
target_file_name = "21718412.zip"
32453245
target_file_name_path = tf.keras.utils.get_file(target_file_name, url,
32463246
cache_subdir=DATA_PATH, extract = True )

0 commit comments

Comments
 (0)