Skip to content

Commit

Permalink
Viz: Do not show units for source maps derived from sLORETA maps
Browse files Browse the repository at this point in the history
  • Loading branch information
rcassani committed Nov 2, 2023
1 parent 5b2b623 commit df41794
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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!<BR>SET UP A <FONT color=red>BACKUP</FONT> OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.231031 (31-Oct-2023)<br>
<!-- LICENCE_START -->Version: 3.231102 (02-Nov-2023)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2023
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.231031 (31-Oct-2023)
% v. 3.231102 (02-Nov-2023)
11 changes: 9 additions & 2 deletions toolbox/gui/panel_surface.m
Expand Up @@ -2030,8 +2030,15 @@ function UpdateSurfaceColormap(hFig, iSurfaces)
if strcmpi(DataType, 'Data') && ~isempty(ColormapInfo.Type) && ismember(ColormapInfo.Type, {'eeg', 'meg', 'nirs'})
DataType = upper(ColormapInfo.Type);
% sLORETA: Do not use regular source scaling (pAm)
elseif strcmpi(DataType, 'Source') && ~isempty(strfind(lower(TessInfo(iTess).DataSource.FileName), 'sloreta'))
DataType = 'sLORETA';
elseif strcmpi(DataType, 'Source')
if ~isempty(strfind(lower(TessInfo(iTess).DataSource.FileName), 'sloreta'))
DataType = 'sLORETA';
else
sResultsMat = in_bst_results(TessInfo(iTess).DataSource.FileName, 0, 'Function');
if ~isempty(strfind(lower(sResultsMat.Function), 'sloreta'))
DataType = 'sLORETA';
end
end
end
end
% === DISPLAY ON MRI ===
Expand Down

0 comments on commit df41794

Please sign in to comment.