Skip to content

Commit e6c23e0

Browse files
authored
Merge pull request #19 from lsarra/patch-1
Fix FSTimeoutError for dataset download
2 parents e26c370 + e84a38a commit e6c23e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

astroclip/data/dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
"""Joint dataset of DESI Legacy Survey and DESI Early Data Release."""
1515

16+
from aiohttp import ClientTimeout
1617
import datasets
1718
import h5py
1819
import numpy as np
@@ -75,6 +76,7 @@ def _info(self):
7576

7677
def _split_generators(self, dl_manager):
7778
urls = _URLS[self.config.name]
79+
dl_manager.download_config.storage_options["timeout"] = ClientTimeout(total=5000, connect=1000)
7880
data_dir = dl_manager.download_and_extract(urls)
7981
return [
8082
datasets.SplitGenerator(

0 commit comments

Comments
 (0)