Skip to content

Commit

Permalink
Merge pull request #8 from HiDiHlabs/dev
Browse files Browse the repository at this point in the history
Fix tutorial data download
  • Loading branch information
niklasmueboe authored Aug 6, 2024
2 parents 8a0ecad + afff76c commit 53b8e1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sainsc/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
if TYPE_CHECKING:
from pooch import Pooch

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


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

0 comments on commit 53b8e1f

Please sign in to comment.