-
Notifications
You must be signed in to change notification settings - Fork 15
add parfor loop into bidsSpatialPrep #257
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
Conversation
release candidate v0.1.0
…_bot [FIX] [INFRA] contributor bot json
…add-marcobarilari docs: add marcobarilari as a contributor
…add-marcobarilari docs: add marcobarilari as a contributor
…add-fedefalag docs: add fedefalag as a contributor
…add-CerenB docs: add CerenB as a contributor
…add-CerenB docs: add CerenB as a contributor
…add-Remi-Gau docs: add Remi-Gau as a contributor
Codecov Report
@@ Coverage Diff @@
## dev #257 +/- ##
==========================================
- Coverage 53.71% 53.65% -0.07%
==========================================
Files 111 111
Lines 1936 1944 +8
==========================================
+ Hits 1040 1043 +3
- Misses 896 901 +5
Continue to review full report at Codecov.
|
Remi-Gau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
One suggestion that we could add in here, to make that workflow even more readable.
LMWYT
|
Cool. Thanks for that @CerenB
For the figure saving I think I will open a separate issue and address it in another PR. I think that I am learning that with PR "size matters: small is beautiful" |
|
another thing is I was trying in my analysis pipeline (in But it still goes into the parallel processing. Do you have any guess what I might be doing wrong? I thought with |
Ha yes that's the part that might need some documentation. If set to This should be set here. But seeing this now, I get the feeling that I have not coded this properly. Will open an issue to fix that in a separate PR. |
|
How can I understand if things are working properly? Any suggestion? I might be over reading it but when I re-run things with |
|
I've tested by re-running again without the parallel processing and it seems that due to re-running the spatialprep deletes some .MAT files, so all good here. Parallel processing seems to be no harm to our preprocessing 👍 |
one tiny question in this line. parallel processing would be the same as opening 4 matlab sessions and running different subjects? thought not sure what would happen if I change 1 script (to change subject number) and save it while it was saved with another subject number and running already. any comments on that? |
Co-authored-by: Remi Gau <remi_gau@hotmail.com>
yup: though I suspect it may use resources a bit differently (I don't know how the overhead of memory management differ between having 4 matlab sessions or a single one with a forloop on 4 cores). thought not sure what would happen if I change 1 script (to change subject number) and save it while it was saved with another subject number and running already. any comments on that? I am pretty sure it won't affect stuff that that is already launched. But when the stuff that is launched stops, the code you might have changed somewhere will show the update you applied somewhere else. It can be VERY confusing. |
hey @CerenB I send a PR on this your branch to fix this. You can review it on your repo and then when we merge it, it will update this PR automatically. |
make sure that when set to false parallel.do only uses 1 worker
|
If there isn't anything else to add here I think we can merge. |
meaning: feel free to press the big green button. |
|
I thought so too but I do not have write access to accept the PR. so no green button. |
|
I gave you "write" access to the repo. This should do it. :-) |
|
@all-contributors please add @CerenB for code, review |
|
I've put up a pull request to add @CerenB! 🎉 |
|
@all-contributors please add @Remi-Gau for test |
|
I've put up a pull request to add @Remi-Gau! 🎉 |
The parallel processing seems to be working - the processing time cut short.