Skip to content

Commit 53b8e1f

Browse files
authored
Merge pull request #8 from HiDiHlabs/dev
Fix tutorial data download
2 parents 8a0ecad + afff76c commit 53b8e1f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sainsc/datasets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
if TYPE_CHECKING:
99
from pooch import Pooch
1010

11+
# version tags have the format vX.Y.Z but __version__ is X.Y.Z
12+
# we need to modify it otherwise the url is incorrect
13+
version = "v" + __version__
14+
1115

1216
def _get_signature_pooch() -> "Pooch":
1317
# use indirection to enable pooch as optional dependency w/o lazy loading
@@ -17,7 +21,7 @@ def _get_signature_pooch() -> "Pooch":
1721
SIGNATURES = pooch.create(
1822
path=pooch.os_cache("sainsc"),
1923
base_url="https://github.com/HiDiHLabs/sainsc/raw/{version}/data/",
20-
version=__version__,
24+
version=version,
2125
version_dev="main",
2226
registry={
2327
"signatures_brain.tsv": "sha256:1e7e3e959ea0a0efdfb8bff2ef1de368757a26f317088122a14dd0b141f7149e",

0 commit comments

Comments
 (0)