diff --git a/+PlotID/@config/config.m b/+PlotID/@config/config.m index e3a5ed487d5b2e51af1de5c81fadb772a3e44bdf..5ca8b98c29c80487ee3e30d262368de79f800712 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 de66181d95c25c8d3efa4d06e2e693c28f8bdfbc..7de3fa7f8a86f4d20d09e6b882d3d550d3e6919b 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 58c1ffed0a9986f613ba883ea871e39f891d6872..f29527c0eed433475e22e50456f4f3a73d81dadb 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);