-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ERPLAB v8.10 Now includes: Standard Error bug fixed. Warns if old standard error is used. Default SEM transparency on ERP plots is 0.7, rather than 0 The Advanced EventList GUI is not viewable on more screens. We warn and offer help if Signal Processing Toolbox is missing.
- Loading branch information
1 parent
17cd501
commit dddd36d
Showing
8 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
% Signal Processing Toolbox check | ||
% axs Nov 2020 | ||
function SigProcT_here = SignalProcessingToolboxCheck | ||
|
||
% Get Toolbox list from ver | ||
tbxs = ver; | ||
[a, tbxs_n] = size(tbxs); | ||
tbx_cell = cell(1,tbxs_n); | ||
tbx_cell = {tbxs.Name}; | ||
|
||
SigProcT_here = any(ismember(tbx_cell,'Signal Processing Toolbox')); | ||
|
||
if SigProcT_here == 0 | ||
% if the Signal Processing Toolbox is not found | ||
warning_text = 'Matlab Signal Processing Toolbox has not been found.'; | ||
warning_text2= 'This is required for many ERPLAB functions, especially filters'; | ||
warning(warning_text) | ||
warning(warning_text2) | ||
disp('<a href="https://github.com/lucklab/erplab/wiki/Signal-Processing-Toolbox-in-ERPLAB">See Signal Processing Toolbox help here</a>') | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
% Warn Old SEM in ERP | ||
% axs Nov 2020 | ||
% | ||
% INPUT | ||
% shist = 1 when pop_loaderp called from GUI | ||
% shist = 2 when pop_loaderp called from script | ||
function warn_old_SE_pre81(gui_state) | ||
|
||
% Argument checks | ||
if nargin<1 | ||
gui_state = 1; | ||
end | ||
|
||
% check working memory | ||
% don't warn if preference not to is already in working memory | ||
mem = erpworkingmemory('supress_SE_warning'); | ||
|
||
if isempty(mem) == 1 | ||
% no warning pref in memory | ||
warn_here = 1; | ||
else | ||
if mem == 1 | ||
% preference not to warn in memory | ||
warn_here = 0; | ||
else | ||
warn_here = 1; | ||
end | ||
end | ||
|
||
erplab_default_values % script | ||
currvers = ['erplab' erplabver]; | ||
|
||
old_SEM_txt = ['', ... | ||
'At least one of these loaded ERPsets was made in an ERPLAB version below v8.1 \n\n', ... | ||
'This installation of ERPLAB is: ', num2str(erplabver), '\n', ... | ||
'The Standard Error code **prior to v8.1** had a bug that has been fixed. \n', ... | ||
'We recommend using the lastest ERPLAB, and, \n', ... | ||
'if you plan to use the pointwise SEM, we recommend \n', ... | ||
'remaking this ERPset using v8.1+']; | ||
|
||
old_SEM_title = 'ERPLAB: Old ERPSET SEM, pre-v8.1'; | ||
|
||
buttons = {'See latest release';'Don’t show again';'Continue'}; | ||
|
||
if warn_here | ||
if gui_state == 1 | ||
% if from GUI | ||
buttonpressed = askquestpoly(sprintf(old_SEM_txt), old_SEM_title, buttons); | ||
elseif gui_state == 2 | ||
% if from script | ||
disp(sprintf(old_SEM_txt)); | ||
disp('To stop this warning, run:') | ||
disp('erpworkingmemory(''supress_SE_warning'',1)'); | ||
end | ||
|
||
which_buttonpressed = strcmp(buttonpressed,buttons); | ||
|
||
if which_buttonpressed(1) | ||
% See latest release requested | ||
web('https://github.com/lucklab/erplab/releases', '-browser'); | ||
|
||
elseif which_buttonpressed(2) | ||
% Don't show again requested | ||
|
||
% Push 1 to erpworking memory, under name supress_SE_warning | ||
erpworkingmemory('supress_SE_warning',1); | ||
% clear this with erpworkingmemory('supress_SE_warning',[]) | ||
|
||
% check it saved correctly | ||
test_check = erpworkingmemory('supress_SE_warning'); | ||
if test_check == 1 | ||
worked_text = 'This warning for old SE in loaded ERPsets will not be shown again'; | ||
disp(worked_text) | ||
else | ||
prob_text = 'Problem saving warning preferences. No write permission to ERPLAB folder??'; | ||
disp(prob_text) | ||
end | ||
|
||
% and no action on 'Continue' | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters