Skip to content

Commit

Permalink
Fix bug in pooch example
Browse files Browse the repository at this point in the history
pooch needs URL pointing to raw data to work
  • Loading branch information
alessandrofelder authored Jun 3, 2024
1 parent 2e4a759 commit 7fa7ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/open_science/GIN-repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<username>/<repository>/src/main/file",
url="https://gin.g-node.org/<username>/raw/<repository>/main/file",
known_hash=None,
path="/home/<user>/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:
Expand Down

0 comments on commit 7fa7ed6

Please sign in to comment.