-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support output spaces to arbitrary templates and cohorts #184
Conversation
This looks like a really clean solution. Do you know what would happen if there were multiple transforms available? |
there would be a crash. Probably better to exit with an error than let it crash downstream? |
Oh I see that now: qsirecon/qsirecon/utils/bids.py Lines 204 to 217 in 0b53f53
Users would get a pretty clear error message. Something like:
|
I'm happy with that error message! |
Actually, since the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #184 +/- ##
==========================================
+ Coverage 47.64% 47.90% +0.26%
==========================================
Files 57 56 -1
Lines 7231 7198 -33
Branches 986 978 -8
==========================================
+ Hits 3445 3448 +3
+ Misses 3581 3544 -37
- Partials 205 206 +1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
In my local testing with the cohorts it still finds them |
Oh... maybe that's related to how |
Right, the query finds it while ignoring the cohort part |
I worry that's more of a convenient bug than a feature, but I also think we'll have plenty of notice if pybids starts parsing these plus signs correctly and searching 'MNIInfant' stops finding 'MNIInfant+1' etc. |
We'll definitely need to add a test for MNIInfant inputs, but it will be a big task to get simulated data that looks like HBCD |
I think SDCFlows has a few tests where they just generate a dataset layout from a dictionary and make sure that the queries work as expected. We could probably add something like that just to make sure the collection steps are working. |
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.
I think things will change once we let users specify the output spaces they want, but this is a huge step in that direction. Everything looks good to me!
The HBCD data will be registered to MNIInfant+cohort templates. We want to make sure these file names are used in the qsirecon scalar mappers