From 7fa7ed65926a4e68851f9046fcab8601f6cbecc5 Mon Sep 17 00:00:00 2001 From: Alessandro Felder Date: Mon, 3 Jun 2024 11:59:19 +0100 Subject: [PATCH 1/2] Fix bug in pooch example pooch needs URL pointing to raw data to work --- docs/source/open_science/GIN-repositories.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/open_science/GIN-repositories.md b/docs/source/open_science/GIN-repositories.md index 338003c..9fa85d2 100644 --- a/docs/source/open_science/GIN-repositories.md +++ b/docs/source/open_science/GIN-repositories.md @@ -295,13 +295,14 @@ Here is a simple example of how to download a dataset from a GIN repository usin import pooch filepath = pooch.retrieve( - url="https://gin.g-node.org///src/main/file", + url="https://gin.g-node.org//raw//main/file", known_hash=None, path="/home//downloads", # this is where the file will be saved progressbar=True, ) ``` + ## Some under-the-hood details GIN is a wrapper around [git-annex](https://git-annex.branchable.com/). The high-level idea behind git-annex is: From 3f62064d55c842d3788e667d0eb70d12b927b5be Mon Sep 17 00:00:00 2001 From: Alessandro Felder Date: Mon, 3 Jun 2024 12:03:52 +0100 Subject: [PATCH 2/2] move /raw to correct part of URL --- docs/source/open_science/GIN-repositories.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/open_science/GIN-repositories.md b/docs/source/open_science/GIN-repositories.md index 9fa85d2..1c01fed 100644 --- a/docs/source/open_science/GIN-repositories.md +++ b/docs/source/open_science/GIN-repositories.md @@ -295,7 +295,7 @@ Here is a simple example of how to download a dataset from a GIN repository usin import pooch filepath = pooch.retrieve( - url="https://gin.g-node.org//raw//main/file", + url="https://gin.g-node.org///raw/main/file", known_hash=None, path="/home//downloads", # this is where the file will be saved progressbar=True,