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