Git Product home page Git Product logo

Comments (11)

robertoostenveld avatar robertoostenveld commented on June 13, 2024

the code around line 46 in fiff_read_epochs reads

%
% Locate the data of interest
%
processed = fiff_dir_tree_find(meas, FIFF.FIFFB_PROCESSED_DATA);
if length(processed) == 0
        fclose(fid);
    error(me,'Could not find epochs data');
end

ep = fiff_dir_tree_find(meas, FIFF.FIFFB_EPOCHS);
if length(ep) == 0
        fclose(fid);
    error(me,'Could not find epochs data');  % LINE 46
end

It seems to me that

  1. the file was written incorrectly, or that
  2. the file does not contain any epochs, perhaps not even MEG data.

error 2 would be your error (i.e. trying to read the wrong file), error 1 would be an error in the writing code, i.e. in MNE-Python.

from mne-matlab.

robertoostenveld avatar robertoostenveld commented on June 13, 2024

Perhaps you should report it as mne-python issue instead.
@agramfort, what do you think?

from mne-matlab.

orekhova avatar orekhova commented on June 13, 2024

I am sure that my -epo.fif file is OK, since I can browse it in mne-python
and the epochs look as they should. I also used these epochs for source
localization in MNE.
Therefore, it is more likely to be error [1]

Elena

On 25 October 2016 at 12:50, Robert Oostenveld [email protected]
wrote:

the code around line 46 in fiff_read_epochs reads

%
% Locate the data of interest
%
processed = fiff_dir_tree_find(meas, FIFF.FIFFB_PROCESSED_DATA);
if length(processed) == 0
fclose(fid);
error(me,'Could not find epochs data');
end

ep = fiff_dir_tree_find(meas, FIFF.FIFFB_EPOCHS);
if length(ep) == 0
fclose(fid);
error(me,'Could not find epochs data'); % LINE 46
end

It seems to me that

  1. the file was written incorrectly, or that
  2. the file does not contain any epochs, perhaps not even MEG data.

error 2 would be your error (i.e. trying to read the wrong file), error 1
would be an error in the writing code, i.e. in MNE-Python.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALeOuvSp4tzqZmXD9Uz9aRfTEXaEiTe_ks5q3d7agaJpZM4Kf0tK
.

from mne-matlab.

agramfort avatar agramfort commented on June 13, 2024

from mne-matlab.

orekhova avatar orekhova commented on June 13, 2024

OK, but I can only do it tomorrow morning.
Elena

On 25 October 2016 at 20:56, Alexandre Gramfort [email protected]
wrote:

elena, can you share the epo.fif file?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALeOuncY3-GuvJ2nckYCSGsVRlp1kUzqks5q3lDngaJpZM4Kf0tK
.

from mne-matlab.

orekhova avatar orekhova commented on June 13, 2024

Hi,
Here is the -epo.fif file I was not able to upload to the Fieldtrip.

https://drive.google.com/open?id=0B4vg0ZrqLpGCcnNBODBHSmJFcWM

Best regards,
Elena

On 25 October 2016 at 20:56, Alexandre Gramfort [email protected]
wrote:

elena, can you share the epo.fif file?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALeOuncY3-GuvJ2nckYCSGsVRlp1kUzqks5q3lDngaJpZM4Kf0tK
.

from mne-matlab.

agramfort avatar agramfort commented on June 13, 2024

from mne-matlab.

orekhova avatar orekhova commented on June 13, 2024

Dear Alex,

How can I try the fixed program? Should I download the new MNE version?

Elena

On 29 October 2016 at 19:40, Alexandre Gramfort [email protected]
wrote:

I think i fixed it in:

https://github.com/mne-tools/mne-matlab/commit/
89a8b65

if you confirm it works I'll open a PR on fieldtrip.

it's our mess with change/fix of FIFF constants.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALeOurPEtrVo682WHt2F9OzcjKc-vE5Fks5q44T-gaJpZM4Kf0tK
.

from mne-matlab.

agramfort avatar agramfort commented on June 13, 2024

from mne-matlab.

orekhova avatar orekhova commented on June 13, 2024

Thank you!
It worked.

Elena

On 1 November 2016 at 14:18, Alexandre Gramfort [email protected]
wrote:

just get the latest mne-matlab toolbox at:

https://github.com/mne-tools/mne-matlab/archive/master.zip


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALeOun_gZU6r8Nvf5mN56ojJalV9Jlprks5q5zwxgaJpZM4Kf0tK
.

from mne-matlab.

agramfort avatar agramfort commented on June 13, 2024

see fieldtrip/fieldtrip#250

closing.

from mne-matlab.

Related Issues (6)

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.