Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HBN #121

Merged
merged 4 commits into from
Jun 23, 2022
Merged

Add HBN #121

merged 4 commits into from
Jun 23, 2022

Conversation

richford
Copy link
Collaborator

Also add progress bar to the url download function. And add an AFQDataset.from_study() static method.

Resolves #116

@richford richford added enhancement New feature or request effort: low Not much effort needed to resolve this issue labels Jun 23, 2022
@richford
Copy link
Collaborator Author

This is now running into the same version errors as #119. So I'll wait until we merge that and then rebase.

@richford richford requested a review from arokem June 23, 2022 09:24
Copy link
Collaborator

@arokem arokem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I wonder whether generalizing the from_dataset method would be a useful thing, or just over-complicated.

if verbose is not None:
download_kwargs["verbose"] = verbose

data_dir = downloaders[study.lower()](**download_kwargs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to allow study to be a callable that returns the same thing that is returned here? That way, a user could define their own study downloader and pass it in here. Would that be useful?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I need you to expound on this a bit. I don't quite understand what you're suggesting. We could talk about it in person. Or maybe I can come back to this after I've had more caffeine.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After an in-person conversation, we came to the conclusion that this is probably not worth it. We anticipate this to be useful primarily in the context of datasets that get encoded explicitly in AFQ-Insight (e.g., in examples).

@arokem arokem merged commit 17db479 into main Jun 23, 2022
arokem added a commit to arokem/AFQ-Insight-legacy that referenced this pull request Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: low Not much effort needed to resolve this issue enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add fetcher for the HBN data
2 participants