Skip to content

Commit 20e3807

Browse files
authored
Merge pull request #218 from scipp/pooch-retry
feat: pooch retry
2 parents ba4e6c7 + 3aca57b commit 20e3807

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ess/sans/data.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44

55
class Registry:
6-
def __init__(self, instrument: str, files: dict[str, str], version: str):
6+
def __init__(
7+
self,
8+
instrument: str,
9+
files: dict[str, str],
10+
version: str,
11+
retry_if_failed: int = 3,
12+
):
713
import pooch
814

915
self._registry = pooch.create(
@@ -12,6 +18,7 @@ def __init__(self, instrument: str, files: dict[str, str], version: str):
1218
base_url=f'https://public.esss.dk/groups/scipp/ess/{instrument}/'
1319
+ '{version}/',
1420
version=version,
21+
retry_if_failed=retry_if_failed,
1522
registry=files,
1623
)
1724

0 commit comments

Comments
 (0)