Skip to content

Commit

Permalink
fix version string for tutorial data download
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmueboe committed Aug 6, 2024
1 parent 4273b30 commit afff76c
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 afff76c

Please sign in to comment.