Giter Club home page Giter Club logo

Comments (8)

schoffelen avatar schoffelen commented on June 11, 2024

Sure, no problem! Could you kindly point me to a single dataset in more detail so that I can do a selective download, and check out what might be going on. I suspect some recent changes to the low-level reading code. Could you confirm that you are using a very recent version of Fieldtrip, and perhaps that if you downgrade to a version from prior to november 2023 the reading works?

from fieldtrip.

asalazar4 avatar asalazar4 commented on June 11, 2024

Thank you so much! We experienced the issue using v20230613 and v20240111 on ds003352 found here: https://nemar.org/dataexplorer/detail?dataset_id=ds003352

Please let me know if any additional details are need.

from fieldtrip.

schoffelen avatar schoffelen commented on June 11, 2024

yes, I would like to know whether this occurs for a particular subject from that dataset. I'd rather not download 200 GB of data...

from fieldtrip.

asalazar4 avatar asalazar4 commented on June 11, 2024

This error is given when importing Subject 1, Session 1, Task Color Spiraks, Run 00

Opening raw data file /expanse/projects/nemar/openneuro/ds003352/sub-1/ses-01/meg/sub-1_ses-01_task-ColorSpirals_run-00_meg.fif...

from fieldtrip.

schoffelen avatar schoffelen commented on June 11, 2024

hi @asalazar4, I downloaded the referenced data file. To me it looks as if the datafile is corrupt. Specifically, when the low level function throws this error:

Error in fiff_read_raw_segment (line 160)
one = double(reshape(tag.data,nchan,this.nsamp));

the number of elements in the tag.data field do not contain the expected number of data points to be the product of nchan*this.nsamp.

from fieldtrip.

schoffelen avatar schoffelen commented on June 11, 2024

Hi @asalazar4 as per my previous comment, it could be that some of the data uploaded into the nemar repository are corrupted. We could consider building in some extra checks in the code for this, but that would require a bit of overhead in the lower level reading functions, and it would require work. Do you think such checks are necessary, and if so, who is going to implement this? @robertoostenveld what do you think?

from fieldtrip.

arnodelorme avatar arnodelorme commented on June 11, 2024

Note that all the files seem to be there. Also, you need not download the entire archive. You can download this file only. Based on the message, it could be that the data is truncated. We will add a comment to that dataset. Anyway, thank you for your answer.

from fieldtrip.

schoffelen avatar schoffelen commented on June 11, 2024

Yes, indeed as I said the file is corrupted. The low-level reading function has read fewer bytes than the number of bytes suggested by the corresponding tag. In other words, there were fewer bytes available than numbers-of-channels times number-of-samples. My suggestion was related to the fact that we can build in a quick check (with additional overhead) that can throw a more informative error message than just a reshape error

from fieldtrip.

Related Issues (20)

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.