Skip to content

Commit

Permalink
automatically synchronized identical files to dc5f327
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoostenveld committed Nov 17, 2020
1 parent dc5f327 commit 3433282
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
16 changes: 15 additions & 1 deletion fileio/private/ft_senstype.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
% 'neuralynx'
% 'plexon'
% 'artinis'
% 'nirx'
% 'shimadzu'
% 'hitachi'
% 'nirs'
% 'meg'
% 'eeg'
Expand Down Expand Up @@ -258,7 +261,7 @@
% this is a complete header that was read from a Plexon *.nex file using read_plexon_nex
type = 'plexon';
end

elseif issubfield(input, 'orig.stname')
% this is a complete header that was read from an ITAB dataset
type = 'itab';
Expand Down Expand Up @@ -426,6 +429,15 @@
elseif (sum(ismember(ft_senslabel('ctfref'), sens.label)) > 10)
type = 'ctf'; % 29 in the reference set, it might be 151 or 275 channels

elseif (mean(~cellfun(@isempty, regexp(sens.label, 'Rx(\w+)-Tx(\w+)'))) > 0.5)
type = 'artinis';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'Tx(\w+)-Rx(\w+)'))) > 0.5)
type = 'artinis';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'S(\w+)-D(\w+)'))) > 0.5)
type = 'nirs';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'D(\w+)-S(\w+)'))) > 0.5)
type = 'nirs';

end
end % look at label, ori and/or pos
end % if isfield(sens, 'type')
Expand Down Expand Up @@ -461,6 +473,8 @@
if ~isempty(desired)
% return a boolean flag
switch desired
case {'nirs'}
type = any(strcmp(type, {'nirs' 'artinis' 'nirx' 'shimadzu' 'hitachi'}));
case {'eeg'}
type = any(strcmp(type, {'eeg' 'ieeg' 'seeg' 'ecog' 'ant128' 'biosemi64' 'biosemi128' 'biosemi256' 'egi32' 'egi64' 'egi128' 'egi256' 'ext1020' 'eeg1005' 'eeg1010' 'eeg1020'}));
case 'ext1020'
Expand Down
16 changes: 15 additions & 1 deletion inverse/private/ft_senstype.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
% 'neuralynx'
% 'plexon'
% 'artinis'
% 'nirx'
% 'shimadzu'
% 'hitachi'
% 'nirs'
% 'meg'
% 'eeg'
Expand Down Expand Up @@ -258,7 +261,7 @@
% this is a complete header that was read from a Plexon *.nex file using read_plexon_nex
type = 'plexon';
end

elseif issubfield(input, 'orig.stname')
% this is a complete header that was read from an ITAB dataset
type = 'itab';
Expand Down Expand Up @@ -426,6 +429,15 @@
elseif (sum(ismember(ft_senslabel('ctfref'), sens.label)) > 10)
type = 'ctf'; % 29 in the reference set, it might be 151 or 275 channels

elseif (mean(~cellfun(@isempty, regexp(sens.label, 'Rx(\w+)-Tx(\w+)'))) > 0.5)
type = 'artinis';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'Tx(\w+)-Rx(\w+)'))) > 0.5)
type = 'artinis';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'S(\w+)-D(\w+)'))) > 0.5)
type = 'nirs';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'D(\w+)-S(\w+)'))) > 0.5)
type = 'nirs';

end
end % look at label, ori and/or pos
end % if isfield(sens, 'type')
Expand Down Expand Up @@ -461,6 +473,8 @@
if ~isempty(desired)
% return a boolean flag
switch desired
case {'nirs'}
type = any(strcmp(type, {'nirs' 'artinis' 'nirx' 'shimadzu' 'hitachi'}));
case {'eeg'}
type = any(strcmp(type, {'eeg' 'ieeg' 'seeg' 'ecog' 'ant128' 'biosemi64' 'biosemi128' 'biosemi256' 'egi32' 'egi64' 'egi128' 'egi256' 'ext1020' 'eeg1005' 'eeg1010' 'eeg1020'}));
case 'ext1020'
Expand Down
16 changes: 15 additions & 1 deletion plotting/private/ft_senstype.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
% 'neuralynx'
% 'plexon'
% 'artinis'
% 'nirx'
% 'shimadzu'
% 'hitachi'
% 'nirs'
% 'meg'
% 'eeg'
Expand Down Expand Up @@ -258,7 +261,7 @@
% this is a complete header that was read from a Plexon *.nex file using read_plexon_nex
type = 'plexon';
end

elseif issubfield(input, 'orig.stname')
% this is a complete header that was read from an ITAB dataset
type = 'itab';
Expand Down Expand Up @@ -426,6 +429,15 @@
elseif (sum(ismember(ft_senslabel('ctfref'), sens.label)) > 10)
type = 'ctf'; % 29 in the reference set, it might be 151 or 275 channels

elseif (mean(~cellfun(@isempty, regexp(sens.label, 'Rx(\w+)-Tx(\w+)'))) > 0.5)
type = 'artinis';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'Tx(\w+)-Rx(\w+)'))) > 0.5)
type = 'artinis';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'S(\w+)-D(\w+)'))) > 0.5)
type = 'nirs';
elseif (mean(~cellfun(@isempty, regexp(sens.label, 'D(\w+)-S(\w+)'))) > 0.5)
type = 'nirs';

end
end % look at label, ori and/or pos
end % if isfield(sens, 'type')
Expand Down Expand Up @@ -461,6 +473,8 @@
if ~isempty(desired)
% return a boolean flag
switch desired
case {'nirs'}
type = any(strcmp(type, {'nirs' 'artinis' 'nirx' 'shimadzu' 'hitachi'}));
case {'eeg'}
type = any(strcmp(type, {'eeg' 'ieeg' 'seeg' 'ecog' 'ant128' 'biosemi64' 'biosemi128' 'biosemi256' 'egi32' 'egi64' 'egi128' 'egi256' 'ext1020' 'eeg1005' 'eeg1010' 'eeg1020'}));
case 'ext1020'
Expand Down

0 comments on commit 3433282

Please sign in to comment.