Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- function ft_singleplotTFR output HOT 1
- Document and implement OPM coregistration on basis of only Polhemus 3D tracker. HOT 4
- deal with FieldLine smart helmet sensor localization errors HOT 3
- Maxfilter issue when importing MEG datasets ds004276 & ds004483 with File-IO HOT 5
- Deal with FieldLine v3 recordings in which the sensor localization was not successful and the channel names are not unique. HOT 1
- Fieldtrip-SimBio pipeline on macOS with Apple silicon - calc_stiff_matrix_val.mexmaca64 is missing HOT 5
- FIF import issue HOT 2
- CTF data in BIDS format results in inconsistent channel names HOT 11
- Consider reducing the .git history size by removing large binary blobs HOT 1
- Iso2Mesh External Toolbox missing cork.exe HOT 2
- The `ft_read_event` function doesn't work for '.nirs' files due to a repeat key-value pair in function code. HOT 1
- Inconsistency between stat.mask and p-values in ft_freqstatistics HOT 2
- Inconsistency between stat.mask and p-values in ft_freqstatistics HOT 5
- Source localization now require optimization toolbox HOT 4
- ft_selectdata failure HOT 4
- Beamforming oscillatory responses in combined MEG/EEG data HOT 3
- Dipole fitting of combined MEG/EEG data
- EEG inverse mode; HOT 3
- ft_rejectvisual failure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fieldtrip.