changeset 33:d0ceb549f734

replace warning to error display channel
author Mathieu Lagrange <mathieu.lagrange@cnrs.fr>
date Mon, 22 May 2017 10:46:10 +0200
parents 8ce78cacb5cb
children 39399de892ef
files nonExposed/addUserOffsets.m nonExposed/check_options.m nonExposed/getEvent.m
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/nonExposed/addUserOffsets.m	Mon May 22 10:26:04 2017 +0200
+++ b/nonExposed/addUserOffsets.m	Mon May 22 10:46:10 2017 +0200
@@ -21,7 +21,7 @@
 
 if length(scoreEvent)==1 && strcmp('',scoreEvent{1}{1})  % add the same offset to all the classes
     userOffset=[repmat(scoreEvent{1}{3},length(template),1) repmat(scoreEvent{1}{4},length(template),1) repmat(scoreEvent{1}{5},length(template),1) repmat(scoreEvent{1}{6},length(template),1)];
-    fprintf(2, 'score.event if of length 1: classId will set to the class labels of the scene to replicate')
+    fprintf(2, 'score.event if of length 1: classId will set to the class labels of the scene to replicate.\n')
 else % add class wise offsets
     for jj=1:length(scoreEvent) scoreEventClass{jj}=scoreEvent{jj}{1}; end;
     for ii=1:length(template)
--- a/nonExposed/check_options.m	Mon May 22 10:26:04 2017 +0200
+++ b/nonExposed/check_options.m	Mon May 22 10:46:10 2017 +0200
@@ -41,7 +41,7 @@
     if strcmp(timeMode,'generate') && strcmp(timeMode,'generate')
         error('Score does not have a sceneDuration field')
     else
-        fprintf(2, 'score.sceneduration does not exist; sceneDuration will be set to the duration of the scene to replicate')
+        fprintf(2, 'score.sceneduration does not exist; sceneDuration will be set to the duration of the scene to replicate.\n')
     end
 end
 
@@ -53,7 +53,7 @@
 
 if ~strcmp(timeMode,'generate') || ~strcmp(timeMode,'generate')
     if isfield(score,'events')
-        fprintf(2, 'score.event exist; score.events cells values will be used as offsets')
+        fprintf(2, 'score.event exist; score.events cells values will be used as offsets.\n')
     end
 end
 
--- a/nonExposed/getEvent.m	Mon May 22 10:26:04 2017 +0200
+++ b/nonExposed/getEvent.m	Mon May 22 10:46:10 2017 +0200
@@ -48,12 +48,12 @@
     
     if (settings.start_time > score.sceneDuration)
         settings.start_time = score.sceneDuration;
-        fprintf(2, ['Sart time of event class ' score.events{ii}{1} ' is superior to the scene Duration; start time has been set to the scene duration.'])
+        fprintf(2, ['Sart time of event class ' score.events{ii}{1} ' is superior to the scene Duration; start time has been set to the scene duration.\n'])
     end
     
     if (settings.end_time > score.sceneDuration)
         settings.end_time = score.sceneDuration;
-        fprintf(2, ['End time of event class ' score.events{ii}{1} ' is superior to the scene Duration; end time has been set to the scene duration.'])
+        fprintf(2, ['End time of event class ' score.events{ii}{1} ' is superior to the scene Duration; end time has been set to the scene duration.\n'])
     end