-
Notifications
You must be signed in to change notification settings - Fork 532
ENH: Allow BIDS-style slice timings to be passed directly to TShift #2608
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
Codecov Report
@@ Coverage Diff @@
## master #2608 +/- ##
==========================================
+ Coverage 67.59% 67.65% +0.05%
==========================================
Files 340 340
Lines 43007 43030 +23
Branches 5321 5325 +4
==========================================
+ Hits 29072 29111 +39
+ Misses 13236 13218 -18
- Partials 699 701 +2
Continue to review full report at Codecov.
|
Don't have time to do the proper tests on fmriprep today, so punting for this release. |
9162cb9
to
7512be3
Compare
Just a note that I'm testing this on ds000030/sub-10159. Should be good to go today. Anybody up for a code review? |
Patching this branch and nipreps/fmriprep#1160 into the |
iflogger.warning('Passing a file prefixed by "@" will be deprecated' | ||
'; please use the `slice_timing` input') | ||
elif name == 'slice_timing' and isinstance(value, list): | ||
value = self._write_slice_timing() |
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.
if we generate this file, perhaps we should include it in the interface's outputs
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.
Seems reasonable.
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.
looks good to me - one minor suggestion
1376e10
to
afecc94
Compare
This is kind of an upstream from fMRIPrep. It replaces a helper
Function
interface we use beforeTShift
.This refines the
-tpattern
inputs to permit both verifying file existence and directly passing a list of floats, which will create a slice timing file to pass as an argument.Changes proposed in this pull request
slice_timing
input, mutually exclusive withtpattern
, which accepts a file3dTshift
tpattern
to anEnum
, and list valid stringsStr
is kept as an option, to avoid breaking code that uses@<fname>
, but warns user that they should useslice_timing