Skip to content

Commit

Permalink
Capitalized EEGlab plugin name to prevent warning and raised version
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxvandenBoom committed Sep 12, 2022
1 parent 71adb46 commit 0abef69
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.2
18 changes: 9 additions & 9 deletions eegplugin_mef3.m → eegplugin_MEF3.m
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
% eegplugin_mef3() - plugin for importing read MEF 3.0 data
% eegplugin_MEF3() - plugin for importing read MEF 3.0 data
%
% Usage:
% >> eegplugin_mffmatlabio(fig, trystrs, catchstrs);
% >> eegplugin_MEF3(fig, trystrs, catchstrs);
%
% Inputs:
% fig - [integer] eeglab figure.
% trystrs - [struct] "try" strings for menu callbacks.
% catchstrs - [struct] "catch" strings for menu callbacks.
%

function versionstr = eegplugin_mef3(fig, trystrs, catchstrs)
function versionstr = eegplugin_MEF3(fig, trystrs, catchstrs)

% retrieve the version
try
versionstr = fileread('VERSION');
catch
disp('eegplugin_mef3 cannot find the ''VERSION'' file');
disp('eegplugin_MEF3 cannot find the ''VERSION'' file');
return
end

% check input arguments
if nargin < 3
disp('eegplugin_mef3 requires 3 arguments');
disp('eegplugin_MEF3 requires 3 arguments');
return
end

% add amica folder to path
% -----------------------
if ~exist('pop_mef3')
p = which('eegplugin_mef3');
p = p(1:findstr(p,'eegplugin_mef3.m')-1);
if ~exist('pop_MEF3')
p = which('eegplugin_MEF3');
p = p(1:findstr(p,'eegplugin_MEF3.m')-1);
addpath(p);
end

Expand All @@ -39,7 +39,7 @@

% menu callback commands
% ----------------------
comload = [ trystrs.no_check '[EEG, LASTCOM] = pop_mef3;' catchstrs.new_non_empty ];
comload = [ trystrs.no_check '[EEG, LASTCOM] = pop_MEF3;' catchstrs.new_non_empty ];

% create menus (CHANGING THESE MENUS AFFECTS THE MAIN eeglab.m FUNCTION)
% ------------
Expand Down
10 changes: 5 additions & 5 deletions pop_mef3.m → pop_MEF3.m
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
% pop_mef3 - import MEF file to EEGLAB structure.
% pop_MEF3 - import MEF file to EEGLAB structure.
%
% Usage:
% EEG = pop_mef3; % pop up menu to select file
% EEG = pop_mef3(folder); % import folder
% EEG = pop_MEF3; % pop up menu to select file
% EEG = pop_MEF3(folder); % import folder
%
% Input:
% folder - foldername for the MEF data
%
% Output:
% EEG - EEGLAB structure

function [EEG, com] = pop_mef3(fileName)
function [EEG, com] = pop_MEF3(fileName)

com = '';

Expand Down Expand Up @@ -45,4 +45,4 @@
end
end

com = sprintf('EEG = pop_mef3(''%s'');', fileName);
com = sprintf('EEG = pop_MEF3(''%s'');', fileName);

0 comments on commit 0abef69

Please sign in to comment.