eeglab icon indicating copy to clipboard operation
eeglab copied to clipboard

pop_runica fails to find installed plugin AMICA due to faulty existence test

Open zenBen opened this issue 5 months ago • 1 comments

Description

In EEGLAB dev, pop_runica tests for existence of files named as per the list of algorithm names (lines 157 - 161).

for index = length(allalgs):-1:1
    if ~exist(allalgs(index).name, 'file')
        allalgs(index) = [];
    end
end
  • Algorithm names are given in the allalgs structure (lines 111 - 154), this contains about 29 algorithm names, including amica.

  • AMICA 1.7 installed via plugin manager does not contain any file named amica.

  • Thus, the pop_runica code above produces a list of available algorithms that doesn't match reality.


#### Steps to Reproduce
  1. Install EEGLAB dev
  2. Install AMICA 1.7 plugin
  3. try to run ICA on a dataset using method AMICA

#### Expected behavior: AMICA is performed on EEG data
#### Actual behavior: `pop_runica` fails
#### Versions
OS version [fill in]
Matlab version [fill in]
EEGLAB version [fill in]

zenBen avatar May 17 '25 18:05 zenBen