-
Notifications
You must be signed in to change notification settings - Fork 532
fixed fsl.Level1Design gamma convoluion #1500
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
this also provides a framework easily extensible t other convolution methods that we do not yet provide
thanks @TheChymera - could we add two more pieces?
|
Presumably not under the following header - right? Do I create a new header?
|
@TheChymera - under Release 0.12.0-rc1 is fine, we will be updating that for the full release soon. re: the test, i was thinking that the test could go into this test would specifically use the
and then check that the return from the function contains the right basis_key. this doesn't check the actual interface, which will be a separate repo of tests we will be developing. |
@@ -144,8 +144,9 @@ def _create_ev_files( | |||
""" | |||
conds = {} | |||
evname = [] | |||
ev_hrf = load_template('feat_ev_hrf.tcl') | |||
ev_none = load_template('feat_ev_none.tcl') |
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.
ev_none
is still needed for the regressors
@satra I can't test my test script because no matter how I call it I get
Hoe do you do it? |
you can use:
but this requires nipype to be installed ( |
the current updates still use ev_none here: https://github.com/nipy/nipype/pull/1500/files#diff-eade534f1c2e76b62be0e071aae3324cR195 |
Yes, isn't that supposed to happen for the regressors? I never used this feature, so I didn't even realize |
contrasts = Undefined | ||
usetd = False | ||
do_tempfilter = False | ||
return Level1Design._create_ev_files(l,os.getcwd(),runinfo,runidx,usetd,contrasts,do_tempfilter,"hrf") |
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.
this doesn't really test it. the following would run a test. something
would need to be replaced with the expected string
output = Level1Design._create_ev_files(l,os.getcwd(),runinfo,runidx,usetd,contrasts,do_tempfilter,"none")
yield assert_true, 'something' in output
output = Level1Design._create_ev_files(l,os.getcwd(),runinfo,runidx,usetd,contrasts,do_tempfilter,"dgamma")
yield assert_true, 'something' in output
output = Level1Design._create_ev_files(l,os.getcwd(),runinfo,runidx,usetd,contrasts,do_tempfilter,"gamma")
yield assert_true, 'something' in output
@satra could you please pul? |
This also provides a framework that is easily extensible to other convolution methods which we do not yet provide.
Fixes issue #1498