sccn / amica

Code for AMICA: Adaptive Mixture ICA with shared components
BSD 2-Clause "Simplified" License
23 stars 13 forks source link

Issue with loading file using amica with onedrive #42

Open LukasThyss opened 6 months ago

LukasThyss commented 6 months ago

Hey, I am working on a project saved on a business OneDrive folder which includes spaces in the directory, which seems to be interferring with AMICA's loading/saving. C:\Users\xxxx\OneDrive - University of Bergen\xxxx\xxxx\xxxx\xxxx is the filepath, yet an issue appears where it seems to be only reading the path up to the first space, and creates folders in the working directory with the rest of the names from the path. It seems to be able to find the file itself, so I believe it to be an issue with the 'outdir'. Furthermore, if I save the file on a local path, it still does not work, which I believe might be due to EEGLAB being saved in the OneDrive folder.

Here is the command line output when running test_amica.m:

You are using the latest version of EEGLAB. pop_loadset(): loading file Memorize.set ... Reading float file 'Memorize.fdt'... Scaling components to RMS microvolt eeg_checkset: recomputing the ICA activation matrix ... Found datfile A subdirectory or file amicaout\ already exists. 'C:\Users\xxxx\OneDrive' is not recognized as an internal or external command, operable program or batch file. Something went wrong... No gm present, setting num_models to 1 No W present, exiting Unrecognized field name "W".

Error in runamica15 (line 899) weights = mods.W(:,:,1);

Error in pop_runamica (line 338) [W,S,mods] = runamica15(g.datfile,arglist{:});

Error in test_amica (line 3) EEG = pop_runamica(EEG, 'maxiter', 10, 'max_threads', 4);


Here is the command line output when running locally:

pop_loadset(): loading file C:\Users\xxxx\Desktop\amica\xxxx.set ... Reading float file 'C:\Users\xxxx\Desktop\amica\xxxx.fdt'... Creating a new ALLEEG dataset 2 Done Found datfile A subdirectory or file C:\Users\xxxx\Desktop\amica\amicaout\ already exists. 'C:\Users\xxxx\OneDrive' is not recognized as an internal or external command, operable program or batch file. Something went wrong... No gm present, setting num_models to 1 No W present, exiting Unrecognized field name "W".

Error in runamica15 (line 899) weights = mods.W(:,:,1);

Error in pop_runamica (line 338) [W,S,mods] = runamica15(g.datfile,arglist{:});

Error while evaluating Menu Callback.

Error in pop_runamica (line 341) [W,S,mods] = runamica15(EEG.data(:,:),arglist{:});

Error while evaluating Menu Callback.