Closed lidakanari closed 2 years ago
Hi @lidakanari !
The first error (RetrievalError
) is related to the fact that while there are a total of 400 morphologies, not all of them are tagged with V5_20210701
. This is due to the fact that we did not yet have all 400 back in July last year when data were tagged with V5_20210701
. The most recent tag is 20220411
- this tag should be available on all 400 neuron morphologies.
I have tried the download on the data retrieved by using the tag 20220411
and that seemed to work for all 400 neuron morphologies.
This is the code snippet I ran using Nexus Forge version 0.7.1
:
forge = KnowledgeGraphForge("https://raw.githubusercontent.com/BlueBrain/nexus-forge/master/examples/notebooks/use-cases/prod-forge-nexus.yml",
token=TOKEN,
bucket="bbp-external/seu")
tag = "20220411"
_type = "NeuronMorphology"
data = forge.search({"type": "NeuronMorphology"}, limit=500)
print(f"{len(data)} data of type '{_type}' found.")
results = [forge.retrieve(d.id, version=tag) for d in data]
print(str(f"{len(results)} data of type '{_type}' at tag {tag} found."))
dirpath = "./"
for r in results:
forge.download(r, "distribution.contentUrl", dirpath)
Hi @annakristinkaufmann thanks a lot for the fast response. I have tried the code above and it works without errors.
However, the data are not saved on the dirpath
that I specified. Do you know if the download works correctly, or if the data are saved somewhere else by default?
Thanks a lot for your input!
@lidakanari , @annakristinkaufmann can this issue be closed ?
Hi @MFSY ! I think this can be closed.
Hi, I'm trying to use forge to download a specific taged dataset. Here is the code I used
which finds 400 morphologies. However, when I try :
I get an error:
and when I try to download it fails: