Skip to content

Commit

Permalink
Bugfix: IEEG, indexing trouble at finding centroid
Browse files Browse the repository at this point in the history
Reported in: https://neuroimage.usc.edu/forums/t/47316
Close without merging PR #734
  • Loading branch information
rcassani committed Aug 22, 2024
1 parent e088979 commit 150ce37
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Original file line number Diff line number Diff line change
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.240819 (19-Aug-2024)<br>
<!-- LICENCE_START -->Version: 3.240822 (22-Aug-2024)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2024
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.240819 (19-Aug-2024)
% v. 3.240822 (22-Aug-2024)
3 changes: 3 additions & 0 deletions toolbox/gui/panel_coordinates.m
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ function SetSelectionState(isSelected)
end

% === CHECK SURFACE TYPE ===
if isCentroid
SurfacesType = 'Other';
end
% Keep only surfaces that are of the required type
if ~isempty(SurfacesType)
iAcceptableTess = find(strcmpi({TessInfo.Name}, SurfacesType));
Expand Down
4 changes: 2 additions & 2 deletions toolbox/gui/panel_surface.m
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function SliderCallback(hObject, event, target)
CtFile = [];
MeshFile = [];
for i=1:length(sSubject.Anatomy)
if ~isempty(regexp(sSubject.Anatomy(i).FileName, 'CT', 'match'))
if ~isempty(regexp(sSubject.Anatomy(i).FileName, '_volct', 'match'))
CtFile = sSubject.Anatomy(i).FileName;
end
end
Expand Down Expand Up @@ -538,7 +538,7 @@ function SliderCallback(hObject, event, target)
sSubject = bst_get('Subject', SubjectFile);
CtFile = [];
for i=1:length(sSubject.Anatomy)
if ~isempty(regexp(sSubject.Anatomy(i).FileName, 'CT', 'match'))
if ~isempty(regexp(sSubject.Anatomy(i).FileName, '_volct', 'match'))
CtFile = sSubject.Anatomy(i).FileName;
end
end
Expand Down

0 comments on commit 150ce37

Please sign in to comment.