Skip to content

Commit

Permalink
Bugfix: Disable option to run MEM on volume headmodels
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Nov 13, 2020
1 parent e5fd7d5 commit def3708
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON - SET UP A BACKUP OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.201111 (11-Nov-2020)<br>
<!-- LICENCE_START -->Version: 3.201113 (13-Nov-2020)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2020
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.201111 (11-Nov-2020)
% v. 3.201113 (13-Nov-2020)
10 changes: 9 additions & 1 deletion toolbox/process/functions/process_inverse.m
Expand Up @@ -289,7 +289,7 @@
return;
end


%% ===== SELECT INVERSE METHOD =====
% Select method
if OPTIONS.DisplayMessages
Expand Down Expand Up @@ -393,6 +393,14 @@
case 'dspm', methodTag = 'dSPM';
case 'sloreta', methodTag = 'sLORETA';
case 'mem', methodTag = 'MEM';
% MEM incompatible with some options
if isShared
errMessage = 'Cannot compute shared kernels with this method.';
return
elseif ismember(HeadModelType, {'volume','mixed'})
errMessage = 'Volume and mixed head models are not compatible with this method.';
return
end
end

%% ===== COMMENT =====
Expand Down

0 comments on commit def3708

Please sign in to comment.