Skip to content

Commit

Permalink
Bugfix: Connectivity 1xN on cortex viz
Browse files Browse the repository at this point in the history
  • Loading branch information
rcassani committed Oct 11, 2023
1 parent bb1d276 commit 6a68473
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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.231010 (10-Oct-2023)<br>
<!-- LICENCE_START -->Version: 3.231011 (11-Oct-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.231010 (10-Oct-2023)
% v. 3.231011 (11-Oct-2023)
8 changes: 8 additions & 0 deletions toolbox/gui/panel_surface.m
Expand Up @@ -1784,6 +1784,14 @@ function UpdateSurfaceProperties()
% and the number of vertices of the target surface patch (IGNORE TEST FOR MRI)
if strcmpi(TessInfo(iTess).Name, 'Anatomy')
% Nothing to check right now
elseif ~isempty(strfind(TessInfo(iTess).DataSource.FileName, '_connect1'))
TessInfo(iTess).DataSource.Atlas = [];
if size(TessInfo(iTess).Data, 1) ~= nVertices
bst_error(sprintf(['Number of connectivity values (%d) is different from number of vertices (%d).\n\n' ...
'Please compute the connectivity metric.'], size(TessInfo(iTess).Data, 1), nVertices), 'Data mismatch', 0);
isOk = 0;
return;
end
elseif ~isempty(TessInfo(iTess).DataSource.Atlas) && ~isempty(TessInfo(iTess).DataSource.Atlas.Scouts)
if (size(TessInfo(iTess).Data, 1) ~= length(TessInfo(iTess).DataSource.Atlas.Scouts))
bst_error(sprintf(['Number of sources (%d) is different from number of scouts (%d).\n\n' ...
Expand Down

0 comments on commit 6a68473

Please sign in to comment.