templateflow / python-client

A python client to query TemplateFlow via pyBIDS
https://templateflow.org/python-client/
Apache License 2.0
8 stars 12 forks source link

The download file end with empty files #82

Closed gourdchen closed 10 months ago

gourdchen commented 2 years ago

I try the python code to download the template, but I can noly see the empty files.

$ python -c "from templateflow.api import get; get(['MNI152NLin2009cAsym', 'MNI152NLin6Asym', 'OASIS30ANTs', 'MNIPediatricAsym', 'MNIInfant'])"
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPA_desc-th0_dseg.nii.gz
350B [00:00, 361kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPA_desc-th25_dseg.nii.gz
351B [00:00, 176kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPA_desc-th50_dseg.nii.gz
351B [00:00, 173kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPA_probseg.nii.gz
344B [00:00, 357kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPAL_desc-th0_dseg.nii.gz
351B [00:00, 176kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPAL_desc-th25_dseg.nii.gz
352B [00:00, 575kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPAL_desc-th50_dseg.nii.gz
352B [00:00, 352kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOCPAL_probseg.nii.gz
345B [00:00, 318kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOSPA_desc-th0_dseg.nii.gz
350B [00:00, 345kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOSPA_desc-th25_dseg.nii.gz
351B [00:00, 354kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOSPA_desc-th50_dseg.nii.gz
351B [00:00, 176kB/s]
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym\tpl-MNI152NLin6Asym_res-01_atlas-HOSPA_probseg.nii.gz
344B [00:00, 174kB/s]
oesteban commented 2 years ago

Thanks for reporting this. We are working on improving the several automated workflows that ensure TemplateFlow's functioning and it is possible that these particular files are hitting some HTTP error.

We are working on this. Could you let us know the version of the templateflow client you are using?

effigies commented 10 months ago

Should be resolved in 23.1.0.