Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binlister error #187

Open
pb865 opened this issue Feb 4, 2024 · 1 comment
Open

Binlister error #187

pb865 opened this issue Feb 4, 2024 · 1 comment
Assignees

Comments

@pb865
Copy link

pb865 commented Feb 4, 2024

Description

While trying to use the binlister, two errors are returned:


Error in neobinlister2 (line 280)
        cd1 = EVENTLIST.eventinfo(iLogitem).enable~=-1 && ~ismember(EVENTLIST.eventinfo(iLogitem).code, forbiddenCodeArray);

Error in pop_binlister (line 436)
        [EEG, EVENTLIST, binofbins, isparsenum] = neobinlister2(EEG, file1, file2, file3, forbiddenCodeArray, ignoreCodeArray, 0);

EEG refers to the EEG file I am trying to process. This set is part of a preprocessing for-loop I have written. The line of code that produces this error is:

EEG  = pop_binlister( EEG , 'BDF', [DIR1 '/' 'WIT_key_bins_v3.txt'], 'ExportEL', [DIR3 '/' SUB{i} '_WIT_eventlist_bins.txt'], 'IndexEL',  1, 'SendEL2', 'EEG&Text', 'UpdateEEG', 'on', 'Voutput', 'EEG' );

Where EEG is my EEG file, ``DIR1``` is the directory to where the binlister txt file is, and DIR3 is the output directory.

My binlister text file looks like this:

bin 1

BPG_Correct

.{15}

bin 2

BPG_Incorrect

.{16}

bin 3

BPT_Correct

.{18}

bin 4

BPT_Incorrect

.{19}

bin 5

WPG_Correct

.{24}

bin 6

WPG_Incorrect

.{25}

bin 7

WPT_Correct

.{27}

bin 8

WPT_Incorrect

.{28}

"AND" and "OR" do not apply in terms of my bins, so I'm not quite sure to what this error is referring.


#### Expected behavior:

Bin the events based on my binlister .txt file.


#### Actual behavior: Errors returned. Could not complete preprocessing.
#### Versions
OS version [Windows 11 Education version 23H2]
Matlab version [23.2.0.2365128 (R2023b)]
EEGLAB version [2023.0]
ERPLAB version [v10.0]
@davidg622
Copy link
Collaborator

Hello,

Does the same error occur when you use Binlister through the GUI? If so, please send me a sample of your data and the Binlister file to my email address, [email protected], where I can try to diagnose the problem.

Thanks,
David

@davidg622 davidg622 self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants