From a83da037f2552e3e841734f4c2b5266a5b8a9131 Mon Sep 17 00:00:00 2001
From: "M. Hock" <martin.hock@fst.tu-darmstadt.de>
Date: Thu, 7 Oct 2021 18:10:43 +0200
Subject: [PATCH] fix runtest.ps1 unfinished statement

---
 CI_files/runtest.ps1 |  2 --
 PlotID_Demo.m        | 11 ++++++++---
 example.m            |  6 +++---
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/CI_files/runtest.ps1 b/CI_files/runtest.ps1
index 677bd52..36c021d 100644
--- a/CI_files/runtest.ps1
+++ b/CI_files/runtest.ps1
@@ -4,8 +4,6 @@ $LOGFILE="log2.txt"
 $arguments = "-nodesktop", "-nosplash","-minimize","-wait", "-logfile $LOGFILE","-r","runner_test"
 $Returnvalue = & 'C:\Program Files\MATLAB\R2021b\bin\matlab.exe' $arguments
 
-$mfile = 
-
 CODE=$?
 
 cat $Returnvalue;
diff --git a/PlotID_Demo.m b/PlotID_Demo.m
index 2914c4f..766ad17 100644
--- a/PlotID_Demo.m
+++ b/PlotID_Demo.m
@@ -28,7 +28,7 @@ y1 = sin(x1)+.5*sin(2*x1)+2;
 
 % define file path & name
 
-fpath = fullefile(pwd,"./testdata2.h5");
+fpath = fullfile(pwd,"./testdata2.h5");
 dataset2 = fullfile(pwd,'testdata2.h5');
 
 % create hdf5 file and dataset > write data to hdf5 file / dataset
@@ -48,7 +48,7 @@ box off; hold on;
 plot(x1,y1,'-k');
 set(gca, 'TickDir', 'out', 'YLim', [0,4],'YTick',[0:1:4],'XLim',[0,6]);
 %fstplt.setfiguresize('1/2ppt16:9');
-fstplt.pimpplot;
+%fstplt.pimpplot;
 
 %% Example 1: single plot based on two data-sets
 
@@ -66,4 +66,9 @@ path.script = mfilename('fullpath'); % filename of the m.script
 % file names of the datasets
 path.rdata =  {dataset1,dataset2} ; % don't forget the extension
 
-PlotID.Publish(path, ID, fig(1), 'Location', 'local' ,'Method','individual')
\ No newline at end of file
+PlotID.Publish(path, ID, fig(1), 'Location', 'local' ,'Method','individual')
+
+
+
+%% End 
+
diff --git a/example.m b/example.m
index bda38be..92e79d6 100644
--- a/example.m
+++ b/example.m
@@ -18,7 +18,7 @@ end
 % otherwise dialogue?
 
 % Leave empty for using the ID from the config file
-ProjectID = '';
+ProjectID = 'FST03';
 
 
 %% Data
@@ -81,7 +81,7 @@ path.script = mfilename('fullpath'); % filename of the m.script
 % file names of the datasets
 path.rdata =  {dataset1,dataset2} ; % don't forget the extension
 
-PlotID.Publish(path, ID, fig(1), 'Location', 'local' ,'Method','centralized')
+PlotID.Publish(path, ID, fig(1), 'Location', 'local' ,'Method','individual')
 
 %% Example 2: multiple plots plot, all based on data-set2 (hdf5)
 % for individual data-sets, use an appropriate array
@@ -102,7 +102,7 @@ path.rdata =  {dataset2} ; % don't forget the extension
 
 % publsihing via for-loop
 for i=1: numel(fig)
-    PlotID.Publish(path, IDs{i}, fig(i), 'Location', 'local','Method','centralized');
+    PlotID.Publish(path, IDs{i}, fig(i), 'Location', 'server','Method','individual');
 end
 
 %% Second Plot with identical data to test centralized method
-- 
GitLab