From afff76cd5e7ffd0d261c1183b6da62e2794939f9 Mon Sep 17 00:00:00 2001 From: niklasmueboe Date: Tue, 6 Aug 2024 16:08:20 +0200 Subject: [PATCH] fix version string for tutorial data download --- sainsc/datasets.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sainsc/datasets.py b/sainsc/datasets.py index 832b401..422a2fe 100644 --- a/sainsc/datasets.py +++ b/sainsc/datasets.py @@ -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 @@ -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",