High sampling rate problem (60 000 Hz)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the provided pop_clean_rawdata call using the attached EDF and LOC files, then inspect the reported locations in clean_windows (105), clean_asr (146), clean_artifacts (233), and pop_clean_rawdata (151). Determine why the six-channel, 60,000 Hz input produces the indexing or integer-class error and confirm a reproducible resolution without changing the requested ASR settings.
Written by the indexing model from the issue text.
Description
I have a EEG data sample which contains six channels. Two of them are scalp channels (Tp9 & Tp10), the other four are implanted electrodes which are located near the medial geniculate nucleus (MGB) of the patients brain during deep brain stimulation (DBS) surgery. The exact location is not known, but these four channels are only millimeters apart in order to extract accurate local field potentials (LFP). I added the EEG data as EDF file and the channel locations as LOC file. When I try to run ASR with the following code for example, I receive an error saying:
Input -->
EEG = eeg_checkset( EEG );
EEG = pop_clean_rawdata(EEG, 'FlatlineCriterion','off','ChannelCriterion','off','LineNoiseCriterion','off','Highpass','off','BurstCriterion',20,'WindowCriterion',0.25,'BurstRejection','on','Distance','Euclidian','WindowCriterionTolerances',[-Inf 7] );
[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'overwrite','on','gui','off');
Output-->
'Array indices must be positive integers or logical values.
occurred in:
clean_windows: 105
clean_asr: 146
clean_artifacts: 233
pop_clean_rawdata: 151'
or
'Integers can only be combined with integers of the same class, or scalar doubles.'
I tried to convert the EEG.data to double in order to make positive integers or integers, but this does not seem to work.
I cannot go into the detailed functions to check where it goes wrong.
Can you please help me out?
Thank you in advance,
AD stimulus AD elektrodes.zip
Sincerely,
Jelle van der Eerden
- Dominant language
- MATLAB
- Stars
- 55
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sccn/clean_rawdata
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
sccn/clean_rawdata#45 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
sccn/clean_rawdata#43 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
sccn/clean_rawdata#37 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
sccn/clean_rawdata#33 · 3 comments ·
-
wontfix
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sccn/clean_rawdata#4 · 1 comment ·
All issues in sccn/clean_rawdata
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
VH-Lab/NDIcalc-vis-matlab#107 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
gnu-octave/statistics#498 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
HenrikBengtsson/R.matlab#59 · 3 comments ·
-
enhancement question unconfirmed
Difficulty 2/5 1-2 days Newbie friendliness 83/100