Skip to content

Commit

Permalink
deploy: ad17e46
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jun 3, 2024
1 parent 3cd97a4 commit 7bdf412
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 37 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/open_science/GIN-repositories.doctree
Binary file not shown.
3 changes: 2 additions & 1 deletion _sources/open_science/GIN-repositories.md.txt
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
2 changes: 1 addition & 1 deletion open_science/GIN-repositories.html
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ <h2>Download a GIN dataset with Python<a class="headerlink" href="#download-a-gi
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pooch</span>

<span class="n">filepath</span> <span class="o">=</span> <span class="n">pooch</span><span class="o">.</span><span class="n">retrieve</span><span class="p">(</span>
<span class="n">url</span><span class="o">=</span><span class="s2">&quot;https://gin.g-node.org/&lt;username&gt;/&lt;repository&gt;/src/main/file&quot;</span><span class="p">,</span>
<span class="n">url</span><span class="o">=</span><span class="s2">&quot;https://gin.g-node.org/&lt;username&gt;/&lt;repository&gt;/raw/main/file&quot;</span><span class="p">,</span>
<span class="n">known_hash</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">path</span><span class="o">=</span><span class="s2">&quot;/home/&lt;user&gt;/downloads&quot;</span><span class="p">,</span> <span class="c1"># this is where the file will be saved</span>
<span class="n">progressbar</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
Expand Down
66 changes: 33 additions & 33 deletions output.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
open_science/Data-sharing.md:42: [redirected permanently] http://www.brainimagelibrary.org/ to https://www.brainimagelibrary.org/
open_science/Data-sharing.md:65: [redirected permanently] https://ebrains.eu/service/share-data to https://www.ebrains.eu/data/share-data/
open_science/Data-sharing.md:63: [redirected permanently] https://datadryad.org to https://datadryad.org/stash
open_science/GIN-repositories.md:57: [redirected with Found] https://gin.g-node.org/repo/create to https://gin.g-node.org/user/login
open_science/Licensing.md:13: [redirected permanently] https://opensource.org/licenses/BSD-3-Clause to https://opensource.org/license/BSD-3-Clause
data_analysis/HPC-module-SLEAP.md:389: [redirected with unknown code] https://sleap.ai/guides/cli.html?#inference-and-tracking to https://sleap.ai/guides/cli.html
programming/Troubleshooting.md:16: [redirected with Found] https://support.github.com/contact?tags=rr-forks&amp;subject=Detach%20Fork&amp;flow=detach_fork to https://support.github.com/request/landing
open_science/Licensing.md:21: [redirected permanently] https://tldrlegal.com/ to https://www.tldrlegal.com/
open_science/Data-sharing.md:65: [redirected permanently] https://ebrains.eu/service/share-data to https://www.ebrains.eu/data/share-data/
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 7bdf412

Please sign in to comment.