-
Notifications
You must be signed in to change notification settings - Fork 0
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
ENH: allow setting the std parameter using SourceEstimate #67
base: master
Are you sure you want to change the base?
Conversation
# vertices of the patch | ||
if isinstance(stds, mne.SourceEstimate): | ||
std = _get_param_from_stc(stds, [(src_idx, vertno)]) | ||
patch_stds.append(std.mean()) |
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 have a misunderstanding. I thought we are populating std from the center of the patch to all other points. Could you clarify this and also under which circumstances the std.mean() could be applied?
|
||
def prepare_source_estimate(data, vertices): | ||
vertices = [np.array(el) for el in vertices] | ||
return mne.SourceEstimate(np.array(data), vertices, tmin=0, tstep=0.01) |
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.
Maybe add subject="fsaverage"
@@ -107,3 +107,8 @@ def prepare_point_source(name, src_idx=0, vertno=0, n_samples=100): | |||
def prepare_patch_source(name, src_idx=0, vertno=[0, 1], n_samples=100): | |||
waveform = np.ones((n_samples,)) | |||
return PatchSource(name, src_idx, vertno, waveform) | |||
|
|||
|
|||
def prepare_source_estimate(data, vertices): |
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 it's a useful function. You use the same in dummy. Maybe, it could go to utils.py?
No description provided.