Skip to content

Commit

Permalink
fix issue with corrupted ICA scalp topography in clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed Apr 28, 2024
1 parent 376220e commit fb2b77e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/sigprocfunc/topoplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@
%
xi = linspace(xmin,xmax,GRID_SCALE); % x-axis description (row vector)
yi = linspace(ymin,ymax,GRID_SCALE); % y-axis description (row vector)
[xi,yi] = meshgrid(xi, yi);
[yi,xi] = meshgrid(yi, xi);
[Xi,Yi,Zi] = griddata(inty,intx,double(intValues),yi,xi,'v4'); % interpolate data
[Xi,Yi,ZiC] = griddata(inty,intx,double(intContourVals),yi,xi,'v4'); % interpolate data

Expand Down
3 changes: 2 additions & 1 deletion functions/studyfunc/std_savedat.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ function std_savedat( tmpfile, structure)
if ~isfield(structure, 'datafile') && ~isfield(structure, 'datafiles')
structure.datafile = [ tmpfile(1:delims(end)-1) '.set' ];
end
structure.date = char(datetime('today'));

% fix reading problem (bug 764)
tmpfile2 = which(tmpfile);
if isempty(tmpfile2), tmpfile2 = tmpfile; end;
if isempty(tmpfile2), tmpfile2 = tmpfile; end
tmpfile = tmpfile2;

eeglab_options;
Expand Down

0 comments on commit fb2b77e

Please sign in to comment.