Skip to content

Commit

Permalink
FEM: iso2mesh (old), rename csf layer to brain if it is the inner…
Browse files Browse the repository at this point in the history
…most
  • Loading branch information
rcassani committed Mar 27, 2024
1 parent d07fe62 commit a32988e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toolbox/process/functions/process_fem_mesh.m
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@
iSort = [iSort, iOther(~isnan(iOther))];
OPTIONS.BemFiles = OPTIONS.BemFiles(iSort);
TissueLabels = TissueLabels(iSort);
% If there is a CSF layer but nothing inside: rename into BRAIN
if ismember('csf', TissueLabels) && ~ismember('white', TissueLabels) && ~ismember('gray', TissueLabels)
TissueLabels{ismember(TissueLabels, 'csf')} = 'brain';
end
end
% Load surfaces
bst_progress('text', 'Loading surfaces...');
Expand Down

0 comments on commit a32988e

Please sign in to comment.