Skip to content

Commit

Permalink
Merge pull request #197 from Tijl/fix_for_195
Browse files Browse the repository at this point in the history
Proposed fix for #195
  • Loading branch information
nno committed Aug 20, 2020
2 parents a81ec0f + f23f70a commit 4f01051
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mvpa/cosmo_meeg_chan_neighbors.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@
nbr_cell=cellfun(@(x){x},nbr_label,'UniformOutput',false);

overlap=cosmo_overlap(ds_cell,nbr_cell);
assert(all(sum(overlap,1)) &&all(sum(overlap,2)));
if ~(all(sum(overlap,1)) && all(sum(overlap,2)))
return;
end

[i,j]=find(overlap);
n=numel(i);
Expand Down

0 comments on commit 4f01051

Please sign in to comment.