Authored by Anthony Boyer

Fix for FLO. Removed fix for MAR (dash management) as the .csv shd be corrected instead.

... ... @@ -162,7 +162,7 @@ for i0 = 1:size(t,1)
% Copy channel name from input name file (ADDED BY FT 5-Oct-2018)
chMatchLog{end+1,1} = Sensors.label{i1};
chMatchLog{end,2} = Name{iChanPos};
Sensors.label{i1} = strrep(Name{iChanPos},'-','');
Sensors.label{i1} = Name{iChanPos};
else
disp(['ImaGIN> WARNING: ' Sensors.label{i1} ' not assigned']);
chNotFound{end+1} = Sensors.label{i1};
... ... @@ -392,8 +392,6 @@ function iChanPos = findChannel(Label, List, caseType)
% Remove spaces
Label(Label == ' ') = [];
% Remove spaces
List = strrep(List,'-','');
% Switch case type
switch (caseType)
case 'no_change'
... ...
... ... @@ -117,6 +117,7 @@ for j=1:length(KeepEvent) % Navigate all stim events
if strcmpi(patientCode(5:end),'HUH');noteName = strrep(noteName,'.0','');end%some HUH notes
if strcmpi(patientCode(5:end),'TOU');noteName = strrep(noteName,'.0','');end%some TOU notes
if strcmpi(patientCode(5:end),'GRE');noteName = strrep(noteName,'.0','');end%some GRE notes
if strcmpi(patientCode(5:end),'FLO');noteName = strrep(noteName,'.0','');end%some FLO notes
noteName = strrep(noteName,'.',''); noteName = strrep(noteName,',',''); % /!\ float value becomes integer /!\
noteName = strrep(noteName,'sec','s'); noteName = strrep(noteName,'AA','A');
noteName = strrep(noteName,'Stim_Start_',''); noteName = strrep(noteName,'Stim_Stop_','');
... ...