Closed agahkarakuzu closed 2 years ago
Indeed what I am doing is using osf clone
:
https://github.com/SIMEXP/Repo2Data/blob/03826c8ebd7612606d508cadb6079117f8092764/repo2data/repo2data.py#L203-L212
Should not remotePath
be a list then ?
Should not remotePath be a list then ?
It could be a list to recurse over. I think if list, iterate, if not single run would be a user friendly approach as people may not be a fan of array literals for a single entry:
{
"remotePath" = ["something/something"]
}
and just to make sure, "remotePath": "data/20160918_sct_example_data.zip"
the data
folder here is inside osf right ?
Indeed:
Also final thing, @agahkarakuzu can you provide me a repo that wants to use this functionality ? Ideally through binder so that I can test also on NeuroLibre in the same time.
@ltetrel this is the repo I'm trying to use repo2data
in: https://github.com/jvelazquez-reyes/sct-book
@ltetrel the first comment has two links, those make an example btw.
@jvelazquez-reyes @agahkarakuzu https://github.com/SIMEXP/Repo2Data#osf
I will ping you when this release will be available on Neurolibre, still need to update things on the cluster.
Right now, when osf link is detected,
repo2data
attemptsosf clone
. This works when cloning a whole project, but fails when an osf link associated with individual data in a project.Failing config:
The osf command that works for what user requests:
For subsets of a project,
data_requirement.json
can be something like:Something like this, or something you see fit. We should document that in case of
osf
, thesrc
MUST be the link containing the project id. If a subset needed,remotePath
should be provided.