-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error: read_source_spaces #16
Comments
it seems to be read:
https://github.com/mne-tools/mne-matlab/blob/master/matlab/mne_read_source_spaces.m#L251
if you read it back from Python you recover the info?
|
How can I check if there are the patch informations in python? |
please provide a full code snippet using sample data
so we can debug faster.
|
In python:
In matlab (working in the folder 'path'):
And also trying with |
@sivyobe I edited your code snippet. I can confirm the error. I don't have much time now. It's a bug in the matlab IO. maybe @SherazKhan knows what to do |
@agramfort @sivyobe I can fix the bug in mne-matlab and send the PR |
What do you mean @SherazKhan? |
@SherazKhan The bug seems to be unfixed in mne-matlab yet?
There in
|
Hello,
I try to read in matlab (with the mne-matlab tool) a source created in MNE-python with the additional information of patch.
I use in python the command mne.setup_source_space(sj, fname=True, spacing='ico4', subject_dir=<my_path>, add_dist=True), followed by mne.write_source_spaces(...) to have the fif file with patch information.
But when I read the file in matlab there isn't any information about the patch, i.e. the values nearest, nearest_info, pinfo, dist and dist_limit are empty.
Then I try to rewrite the file using one more step in python:
mne.read_source_spaces(..., patch_stats=True, ...) followed by mne.write_source_spaces(...)
and in this case when I try to read the fif file in matlab an error was reported:
How can I solve the problem? Because I need the patch information for my work at this step in matlab.
The text was updated successfully, but these errors were encountered: