-
Notifications
You must be signed in to change notification settings - Fork 1
Parallel download #11
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
cc5acf1
first changes to parallelize download
ferponcem 4bc3a13
going paralleeeeeeel
ferponcem 251c313
minor changes
ferponcem 3557bf9
going paralleeeeeeeeel (better I hope)
ferponcem 1362c12
untrack the token
ferponcem 855a49f
adding joblib to dependencies
ferponcem a6359d6
curl -> request for metadata
ferponcem 35d6b7d
formatting of request function
ferponcem 5c15a44
raising error instead of just printing
ferponcem 124ff49
Merge pull request #13 from individual-brain-charting/replacing_curl_…
ferponcem dae7251
removing tqdm dependency and changes after testing
ferponcem 871efa8
first changes to parallelize download
ferponcem a0f46fc
going paralleeeeeeel
ferponcem c6073b6
minor changes
ferponcem 5e8a6b8
going paralleeeeeeeeel (better I hope)
ferponcem dfe61eb
untrack the token
ferponcem b9784d0
adding joblib to dependencies
ferponcem 29836c5
removing tqdm dependency and changes after testing
ferponcem ed07ef6
Merge branch 'parallel_download' of github.com:individual-brain-chart…
ferponcem 030c22b
managing download dataframe differently
ferponcem 6336a63
small format
ferponcem a09073c
adjustments to example and cmd feedback
ferponcem b5aecee
removing unused imports
ferponcem f64bd29
raising error instead of just printing
ferponcem 5f270f7
num_jobs -> n_jobs
ferponcem f1cdf1d
num_jobs -> n_jobs 2
ferponcem 1406ea0
num_jobs -> n_jobs 3
ferponcem 4266486
expand n_jobs description
ferponcem 2303012
num_jobs -> n_jobs in example
ferponcem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| import ibc_api.utils as ibc | ||
| from ibc_api import utils as ibc | ||
|
|
||
| # Fetch info on all available files | ||
| # Load as a pandas dataframe and save as ibc_data/available_{data_type}.csv | ||
| db = ibc.get_info(data_type="volume_maps") | ||
|
|
||
| # Keep statistic maps for sub-08, for task-Discount | ||
| filtered_db = ibc.filter_data(db, subject_list=["08"], task_list=["Discount"]) | ||
| filtered_db = ibc.filter_data(db, subject_list=["08"], task_list=["Lec1"]) | ||
|
|
||
| # Download all statistic maps for sub-08, task-Discount | ||
| # Download all statistic maps for sub-08, task-Lec1 | ||
| # Also creates ibc_data/downloaded_volume_maps.csv | ||
| # which contains local file paths and time of download | ||
| downloaded_db = ibc.download_data(filtered_db) | ||
| downloaded_db = ibc.download_data(filtered_db, n_jobs=2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,5 @@ dependencies = [ | |
| "nibabel", | ||
| "pandas", | ||
| "tqdm", | ||
| "joblib", | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.