From 0d089824d5d2ab2fe0e3be5f443aa3aa24798649 Mon Sep 17 00:00:00 2001
From: Jan Lemmer <jan.lemmer@fst.tu-darmstadt.de>
Date: Tue, 23 Nov 2021 10:13:01 +0100
Subject: [PATCH] fix

---
 +PlotID/@config/config.m |  2 +-
 +PlotID/@config/wizard.m |  8 ++++----
 Initialisation.m         | 16 ++++++++--------
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/+PlotID/@config/config.m b/+PlotID/@config/config.m
index e3a5ed4..5ca8b98 100644
--- a/+PlotID/@config/config.m
+++ b/+PlotID/@config/config.m
@@ -23,7 +23,7 @@ classdef config < handle
                     obj.configFileName, ' found.' newline,...
                     'Please enter the required information manually'];
                 disp(msg); 
-                obj.configData = obj.wizard('initilise');
+                obj.configData = obj.wizard('initialise');
                 m = input('Do you want to save the config, Y/N [Y]:','s');
                 if ismember(m,{'Y','y'})
                    obj.writeConfig(fullfile(pwd));
diff --git a/+PlotID/@config/wizard.m b/+PlotID/@config/wizard.m
index de66181..7de3fa7 100644
--- a/+PlotID/@config/wizard.m
+++ b/+PlotID/@config/wizard.m
@@ -4,15 +4,15 @@ function config = wizard(mode)
 
 config = struct();
 switch mode
-    case 'initilise'
+    case 'initiliase'
         config.Author = inputRequired('your Name');
         config.ProjectID = inputRequired('your Project Number');
 
-        msg = ['Do you want to add a remote path?' newline,...
+        msg = ['Do you want to add an export path?' newline,...
             'Otherwise your files will be stored locally.' newline,...
-            'You can add this later by rerunning the initilisation.'];
+            'You can add this later by rerunning the initiliasation.'];
         disp(msg);                
-        m = input('Do you want add a remothe path, Y/N [Y]:','s');
+        m = input('Do you want to add an export path? Y/N [Y]:','s');
 
         if ismember(m,{'Y','y'})
            config.ServerPath = uigetdir();
diff --git a/Initialisation.m b/Initialisation.m
index 58c1ffe..f29527c 100644
--- a/Initialisation.m
+++ b/Initialisation.m
@@ -3,13 +3,13 @@
 
 %% Step 1: Add plotID location to you MATLAB path via startup.m
 % Change the current folder to the folder of this m-file.
-cd(fileparts(which(mfilename)));
-plotIDpath = pwd ;
-% Add PlotID path to your startup.m file
-fid = fopen(fullfile(userpath,'startup.m'),'a');
-cmdStr = ['addpath(''', plotIDpath,''');'];
-fprintf(fid,'%s\n', cmdStr);
-fclose(fid);
+%% ToDO: Delete and add to readme 
+% plotIDpath = fileparts(which(mfilename));
+% % Add PlotID path to your startup.m file
+% fid = fopen(fullfile(userpath,'startup.m'),'a+');
+% cmdStr = ['addpath(''', plotIDpath,''');'];
+% fprintf(fid,'%s\n', cmdStr);
+% fclose(fid);
 
 %% Section 2 Config File
 % To make things easy, you should use the config file. The following wizard
@@ -23,7 +23,7 @@ if isfile('config.json')
 end    
 
 if writeConfig
-   config = PlotID.config.wizard('initilise');
+   config = PlotID.config.wizard('initialise');
    fid = fopen('config.json','w');
    txt = jsonencode(config,'PrettyPrint',true);
    fwrite(fid,txt);
-- 
GitLab