Closed arnodelorme closed 2 years ago
doesn't look like an error to me - that part of the code has been there for a long time, so maybe the data you use for testing are different?
if isempty(Y(:,mad(Y,1) > 1e-6)) % time points for which medians of trials > 1e-6
error('WLS cannot be computed, for at least 1 condition, all trials have the same values')
end
Y = 2D matrix of EEG data (dim trials x frames) tells you that all frames have values not deviating more than 1e-6, i.e. data = a constant value (but I use 1e-6 because of precision errors)
I am testing the vanilla Hanson Wakeman data (ds002718) with the script provided. Can you try it?
I have not re-preprocessed the data, but for me https://github.com/LIMO-EEG-Toolbox/limo_test_stats/blob/master/limo_test_integration.m worked
I have now added design with a constant only and it worked as well (with the added fix in std_limo) -- I really think the issue are the data in ...
WLS doesn't fail, this issue moved on another topic due to bad data in
Version in https://github.com/sccn/eeglab_tests/tree/master/unittesting_limo
Crash on the call to pop_limo
The error message is below