-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unclear how to load connectivity object from disk after saving it #134
Comments
Hi @moritz-gerster! I believe you should use the |
That makes sense and it works - thanks! |
I think the documentation should be updated. I did not figure this out on my own. There is no example showing this. |
Seems like the docs could be more clear tho if you had a tough time figuring it out. Interested in making a PR to clarify the docs/docstrings @moritz-gerster? |
Yes, I will have time for that soon! |
) --------- Signed-off-by: Adam Li <[email protected]> Co-authored-by: Adam Li <[email protected]>
…m disk (mne-tools#135) --------- Signed-off-by: Adam Li <[email protected]> Co-authored-by: Adam Li <[email protected]>
Describe the bug
The connectivity class enables saving connectivity objects to disk via the save method.
Saving works, however, I cannot load the data once saved. The documentation of that method is not very helpful. It is not clear in which file format the connectivity should be saved and with what function it should be loaded.
I expected to save it as a ".fif" file and loading it using mne.io.read_raw(file). This didn't work. Looking at the code I realized it's supposed to be saved as a ".nc" file. However, loading the ".nc" file using netCDF also didn't work. Please refer to my jupyter notebook for examples.
Steps to reproduce
I used the code from this tutorial to show my failed efforts in this jupyter notebook to reproduce the issue.
Expected results
The documentation should tell me how to save and how to load the connectivity object. Once loaded, I can work with it and extract all data.
Actual results
Loading the file returns
Additional information
The text was updated successfully, but these errors were encountered: