Skip to content

Commit

Permalink
Fix bug in pooch example (#58)
Browse files Browse the repository at this point in the history
* Fix bug in pooch example

pooch needs URL pointing to raw data to work

* move /raw to correct part of URL
  • Loading branch information
alessandrofelder authored Jun 3, 2024
1 parent 2e4a759 commit ad17e46
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>/<repository>/raw/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 ad17e46

Please sign in to comment.