Skip to content

Commit

Permalink
Bug fix: Delete multiple SEEG electrodes with iEEG panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Mar 27, 2019
1 parent 3416421 commit 16b6bf9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -3,7 +3,7 @@

</head>
<body alink="#fff000" link="#fff000" vlink="#fff000">
<!-- LICENCE_START -->Version: 3.4 (26-Mar-2019)<br>
<!-- LICENCE_START -->Version: 3.4 (27-Mar-2019)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2019
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.4 190326 (26-Mar-2019)
% v. 3.4 190327 (27-Mar-2019)
12 changes: 6 additions & 6 deletions toolbox/gui/panel_ieeg.m
Expand Up @@ -1058,10 +1058,10 @@ function RemoveElectrode()
if ~java_dialog('confirm', strConfirm)
return;
end
% Loop on electrodes to delete
for iElec = 1:length(sSelElec)
% Loop on datasets
for iDS = unique(iDSall)
% Loop on datasets
for iDS = unique(iDSall)
% Loop on electrodes to delete
for iElec = 1:length(sSelElec)
% If new implantation scheme: delete all the contacts for this electrode
if isImplantation
% Get contacts for this electrode
Expand Down Expand Up @@ -1099,9 +1099,9 @@ function RemoveElectrode()
% Remove channels
GlobalData.DataSet(iDS).Channel(iChan) = [];
end
% Delete electrode
GlobalData.DataSet(iDS).IntraElectrodes(iSelElec) = [];
end
% Delete selected electrodes
GlobalData.DataSet(iDS).IntraElectrodes(iSelElec) = [];
end
% Mark channel file as modified (only the first one)
GlobalData.DataSet(iDSall(1)).isChannelModified = 1;
Expand Down
2 changes: 1 addition & 1 deletion toolbox/gui/panel_montage.m
Expand Up @@ -1211,7 +1211,7 @@ function DeleteMontage(MontageName)
continue;
end
% Not EEG or no 3D positions: Skip scalp current density
if strcmpi(GlobalData.ChannelMontages.Montages(i).Name, 'Scalp current density') && ~isempty(FigId.Modality) && ~ismember(FigId.Modality, {'EEG'}) && any(cellfun(@isempty, {FigChannels.Loc}))
if strcmpi(GlobalData.ChannelMontages.Montages(i).Name, 'Scalp current density') && ~isempty(FigId.Modality) && ~ismember(FigId.Modality, {'EEG'}) && any(cellfun(@isempty, {GlobalData.DataSet(iDS).Channel(iFigChannels).Loc}))
continue;
end
% Not CTF-MEG: Skip head motion distance
Expand Down

0 comments on commit 16b6bf9

Please sign in to comment.