Moving away from EbrainsHdgConnector, to ebrains-drive#25
Conversation
|
Commit a66ca2b has the necessary changes to use the For testing, first make sure to install Then try: import ibc_api.utils as ibc
# Test with version 2, as version 3 is the csv file that is incomplete, addressed also in this PR
db = ibc.get_info(data_type="volume_maps", save_to="/test_ebrains_drive", version=2)
filtered_db = ibc.filter_data(db, subject_list=["08"], task_list=["Lec1"])
# Manually adjust to the new naming convention (also to be solved by the new csv file on this PR)
filtered_db["path"] = filtered_db["path"].str.replace(
"space-MNI152NLin2009cAsym_desc-preproc", "space-MNI305", regex=False
)
downloaded_db = ibc.download_data(filtered_db, save_to="/test_ebrains_drive")If you encounter issues with the request access because it does not load on time, simply run And make sure to be in editable mode |
|
Thx ! |
|
Oh ! I am assuming this happens while you're clicking on the link for authentication. If that's the case, could you try running this line again? In the meantime I am also running it again to check ! |
|
Unfortunately, I cannot make it work... |
|
Found the issue (hopefully): IBC is a private repo. Setting Could you try running this again ? Now when you run and after you click you'll see a message like: Then you should go to your email and click on the link, you'll see something like this: Connection might time out in your terminal while you're waiting for the email and clicking, it's okay, just run from Let me know how it works, and thanks for your help ! |
|
Hm. Doesn't work. |
This PR is for the transition from siibra's EbrainsHdgConnector to ebrains-drive to access IBC files from the command line.
This first commit updates list of files for volume maps repo, version 3.
There was a problem with the listing all the files available in Ebrains for each collection, we were experiencing a data size limit.
The script modified now uses ebrains_drive's
BucketApiClientto get available data in a given collection.