Skip to content

Commit

Permalink
fix issue with reading brainstorm files
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed Jun 18, 2024
1 parent 02a306c commit cf60b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/sigprocfunc/readlocs.m
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
if isfield(elocIn, 'SCS')
chans = { 'NAS' 'LPA' 'RPA' };
for iChan = 1:length(chans)
if isfield(elocIn.SCS, chans{iChan})
if isfield(elocIn.SCS, chans{iChan}) && ~isempty(elocIn.SCS.(chans{iChan}))
eloc(end+1).labels = chans{iChan};
eloc(end).X = elocIn.SCS.(chans{iChan})(1);
eloc(end).Y = elocIn.SCS.(chans{iChan})(2);
Expand Down

0 comments on commit cf60b0a

Please sign in to comment.