[ENH] - Remove single fmap-type assumption for BIDSIFY, more flexible derivative specification#291
Conversation
|
Hello @jerdra, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2020-11-16 18:31:56 UTC |
|
will fix PEP issues tmrw! |
|
@DESm1th @josephmje @benselby ready to review! |
|
I just dreamt up a bug w/how the series numbers are used to match fmaps. Gonna push a small adjustment to that algo and we should be good... i really need to write tests for bidsify one day.. |
|
Haha, thanks for being thorough Jer! <3 |
|
thanks for the suggestion @DESm1th, i've updated the matching algo and ran some test data through with success. It's ready to review! |
DESm1th
left a comment
There was a problem hiding this comment.
Looks good Jer! Thanks for updating this :)
| alts = [] | ||
| for d in alt: | ||
| ''' | ||
| Allow "self" to propogate itself if the tag itself |
There was a problem hiding this comment.
I think this comment got a bit mangled haha
There was a problem hiding this comment.
hahaha wellppp thanks for catching should be fixed :)
|
|
||
| def get_first_series(series_list): | ||
| """ | ||
| For each iterable of BIDSFiles calculate the average series number |
There was a problem hiding this comment.
I think this comment isnt accurate anymore
Changes:
is_refoption added which denotes that the scan is a reference scan and that BIDS info about this particular scan needs to be supplemented with info from the next scan (task)Examples:
This specifies:
FIX
This means, for example, a series of resting state scans will always be matched to the same fmap and not to different ones if it happens-so that the last resting state scan series number was closer to another fmap