-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
just a remark but you certainly already know. the options for hrf_model parameter are not consistent in the package. |
I am not sure I understand the rationale for the check_design_matrix that is called in user code just to extract the numpy array from a design_matrix. why not passing a design_matrix to FirstLevelGLM ? I think that would simplify examples. |
On 22/11/2015 09:12, Alexandre Gramfort wrote:
|
great |
@@ -6,6 +6,7 @@ | |||
""" | |||
|
|||
import os | |||
import os.path as op |
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.
@GaelVaroquaux laughs at me when I do this, so I tend to avoid it now...
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.
@GaelVaroquaux https://github.com/GaelVaroquaux laughs at me when I do
this, so I tend to avoid it now...let's team up to laugh at him :)
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 am not going to laugh at anyone but since you are using it once below, you may as well remove this import and use the more verbose os.path.
I'll have a closer look tomorrow, but this looks fine. Thanks a lot for taking time to improve nistats ! |
+1 In examples, I like to give people the concrete sense of where the |
one idea I add also would be to use the index of a DataFrame rather than using the frame_times (don't like the name much btw)
|
Unless |
let me know if I should revert the op...
|
Let's say it's a matter of taste ;-) ... I'm not a purist... |
paradigm = DataFrame({'name': conditions, 'onset': onsets}) | ||
|
||
# build design matrix | ||
frametimes = np.linspace(0, (n_scans - 1) * tr, n_scans) | ||
frame_times = np.linspace(0, (n_scans - 1) * tr, n_scans) |
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.
Use frame_times = np.arange(n_scans) * tr
as above.
Other than the two minor comments, this looks fine to me. |
comments addressed |
Merging, thanks a lot! |
result on my we procrastination...