-
Notifications
You must be signed in to change notification settings - Fork 13
#810 bids.layout: Fix session name extraction #811
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
MichaelStritt
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.
Hm... I partially get what you're doing there 😄
I can quickly test it on a dataset with varying modalities for the sessions like you described.
The question is, if we should note this in our changes.md or if we should create the same PR in the bids-matlab repo instead.
|
Damn... I think there's still something wrong. My multi-session test
Result in bugfix branchThe folders sub-001_1, sub-001_2, & sub-001_3 are there. In sub-001_1 there is only the asl, in sub-001_2 there is the asl and the flair, & in sub-001_3 there is only the asl again... 🤔 Within DCM2NII we seem to find the correct sessions & modalities: |
Test set-upTest DCM2NIIHere everything seems to work fine. There are a few warnings about missing scans, but the results are perfectly fine. Test NII2BIDSHere it already seems to go wrong. The T1 images are missing. |
MichaelStritt
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.
Added a bit more user feedback and some cosmetics. For me everything seems to work fine. Can you check if you're okay with 26f08c3 ?
|
Looks good. My only question is why we set max sessions /visits to 0 by default, shouldn't this default to 1? Also, i see that in your test case, you miss having a session with Anat but without ASL. I would test this as well. |
nMaxVisits and nMaxSessions - not something we changed in this commit. And I can't find this parameter to be used/described anywhere else in the code. AFAIK, we can remove it completely - perhaps make an issue for that and do that in the next release (to be on the safe side).
Yes. Not totally related, but doesn't hurt testing as well. @MichaelStritt - can you run your ADNI test again with a non-ASL session as well? |
Very happy otherwise. Most important thing is to keep stuff modular, the code should be as independent as pragmatically possible. |
I think he just moved stuff around to a subfunction - he did not touch any functionality - just added checks and warnings. Can you confirm Michael - and then create an issue to 1.9.0 to remove the variables...
Yes - I agree, useful to check it to avoid future issues.
Yes - agree!! |
|
@HenkMutsaerts Can you approve? Because we don't plan changes, just Michael will test stuff and make a new issue... |
|
Give me 10 more minutes, I've been improving the unit test this morning 😄 It contains a BIDS2Legacy test with 5 sessions now and a few other things have been improved.
Can confirm 👍 Edit: I can do the merge as soon as @HenkMutsaerts approves the PR 👍 Edit: Okay, added it to the release branch directly f1ababc . From my point of view everything is fine. Let's merge and do release testing 👍 |
|
Agree. Henk, please click the button. And we'll run the full-tests after merging everything (no risk with merging to release branch without all tests). |
bdb5c2a to
9aa50ab
Compare













Linked issue
#810