Git Product home page Git Product logo

mne-matlab's People

Contributors

agramfort avatar chdinh avatar drammock avatar ftadel avatar gabrielbmotta avatar larsoner avatar mluessi avatar mshamalainen avatar schoffelen avatar zuxfoucault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mne-matlab's Issues

Unable to load raw fif file

Hi MNE-matlab team,

Thanks for providing us this useful tools!

Recently I tried to read fif raw file via Brainstorm and got some error messages (as shown below). The message may indicate that the function in MNE-matlab "fiff_read_meas_info" called by in_fopen_fif.m may not read all required information from my fif files. Also, I got the same error message when I tried to read those fif files that I have ever successfully imported 6 month ago.

** Error: Line 131: Reference to non-existent field 'meas_date'.
**
** Call stack:
** >in_fopen_fif.m at 131
** >in_fopen.m at 68
** >import_raw.m at 126
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,[],[],iSubject) at 636

The following link can download a emptyroom fif file that was recorded. (Sorry. Because of the privacy issue, I could only provide the emptyroom data.)
https://drive.google.com/file/d/13MmoEk58t87w85_3PPF4-Hy_AeWL1gLa/view?usp=sharing

Could you please help me to figure out whether I did anything wrong?

Thank you very much!

Best,
Ling

Error: read_source_spaces

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:

Error using fiff_read_tag (line 178)
Only two and three dimensional matrices are supported at this time

How can I solve the problem? Because I need the patch information for my work at this step in matlab.

.fif epochs import to Fieldtrip fails

Hello,
CC @robertoostenveld, @agramfort

This is MNE-Fieldtrip format compatibility issue.

I tried to import -epo.fif file created in MNE python, latest version on today (v13) using fieldtrip cookbook:

%%%%%%%%%%%%%%%%%%%%%%%
fiff_file = '/MYPATH/myfile-epo.fif';
cfg = []
cfg.dataset = fiff_file;
data1 = ft_preprocessing(cfg);
%%%%%%%%%%%%%%%%%%%%%%%

I got en error:
Reference to non-existent field 'FIFFB_EPOCHS'.

Error using fiff_read_epochs (line 46)
Could not find epochs data

Error in fiff_read_epochs (line 46)
error(me,'Could not find epochs data');

Error in ft_read_header (line 1665)
epochs = fiff_read_epochs(filename);

Error in ft_preprocessing (line 397)
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat, 'coordsys', cfg.coordsys, 'coilaccuracy', cfg.coilaccuracy);

I use the latest Fieldtrip version fieldtrip-lite-20161024. It seems that something is wrong with the data structure...?

Elena Orekhova

fiff_read_events.m can't load events?

I try to read events from MNE-sample-data. The events can be loaded in MNE-Python version. However, with the same data set the error message "Could not find events" was printed in Matlab version.


fname = 'sample_audvis_filt-0-40_raw.fif';
[events, mappings] = fiff_read_events(fname);

Both line 38 and 52 in fiff_read_events.m, it seems that the FIFF predefined constants are not match to the data?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.