Skip to content

DatasetVersion.download returns a NotImplementedError #108

@Alixbonard

Description

@Alixbonard

A NotImplementedError appears when we try to execute the following code (fairgraph 0.13.2.):

from fairgraph import KGClient
import fairgraph.openminds.core as omcore

kg_client = KGClient()

dataset_version = omcore.DatasetVersion.by_name('Excitability profile of CA1 pyramidal neurons in APPPS1 Alzheimer disease mice and control littermates', kg_client)
dataset_version.download(local_path=os.getcwd(), client= kg_client, accept_terms_of_use=True)

Traceback:

NotImplementedError Traceback (most recent call last)
Cell In[43], line 2
1 default_path = os.getcwd()
----> 2 dataset_version.download(local_path=default_path, client=kg_client, accept_terms_of_use=True)

File ~/anaconda3/envs/in-depth/lib/python3.12/site-packages/fairgraph/openminds/core/products/dataset_version.py:213, in DatasetVersion.download(self, local_path, client, accept_terms_of_use)
211 zip_archive_url = f"https://data.kg.ebrains.eu/zip?container={repo.iri.value}"
212 else:
--> 213 raise NotImplementedError("Download not yet implemented for this repository type")
214 if local_path.endswith(".zip"):
215 local_filename = Path(local_path)

NotImplementedError: Download not yet implemented for this repository type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions