From fba8fa14f10b32fd6a773d4e1a9f83de31aa261e Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Fri, 26 Jul 2024 10:25:09 -0400 Subject: [PATCH] EASYconsole.m debugging --- workflow/templates/easy/EASYconsole.m | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/workflow/templates/easy/EASYconsole.m b/workflow/templates/easy/EASYconsole.m index 5133bc6d..0112f0ac 100644 --- a/workflow/templates/easy/EASYconsole.m +++ b/workflow/templates/easy/EASYconsole.m @@ -77,6 +77,11 @@ function varargout = EASYconsole(varargin) disp(strcat('Using EASY script directory: ', easyDir, ' from hardcoded default')); end + % Now that we have easyDir let's add it to the path just to be safe + % TODO I have no idea if this is necessary or effective but we'll see + % I could image it would reduce some weird matlab errors? + addpath(easyDir); + if exist('EASY_RESULTS_DIR', 'env') easyResultsDir=fullfile(get_env('EASY_RESULTS_DIR')); disp(strcat('Using project prefix: ', easyResultsDir, ' from environment variable EASY_RESULTS_DIR')) @@ -246,7 +251,7 @@ function NewExpDat_Callback(~, ~, ~) for i = 1:length(templates) d = dirs{i}; if ~exist(fullfile(easyResultsDir, d), 'dir') - copyfile((fullfile(,d)), (fullfile(easyResultsDir,d))); + copyfile((fullfile(easyDir,d)), (fullfile(easyResultsDir,d))); end end @@ -312,7 +317,6 @@ function LoadDatFile_Callback(~, ~, ~) end end catch - returnStartDir end clear scan @@ -334,7 +338,6 @@ function runPlateMapPintool_Callback(~, ~, ~) try NImapPT catch ME - returnStartDir EASYconsole end end @@ -343,7 +346,6 @@ function NImCFcombo_Callback(~, ~, ~) try par4Gbl_Main8c catch - returnStartDir EASYconsole end end @@ -352,7 +354,6 @@ function runPlateImAnal_Callback(~, ~, ~) try NImStartupOnly catch ME - returnStartDir EASYconsole end end @@ -362,7 +363,6 @@ function PlateCFit_Callback(~, ~, ~) try NCstart catch ME - returnStartDir end end @@ -374,7 +374,8 @@ end function runDMPexcel_Callback(~, ~, ~) try - DMPexcel2mat_2024winLinix %DMPexcel2mat_2023winLinix + % DMPexcel2mat_2024winLinix %DMPexcel2mat_2023winLinix + DMPexcel2mat % TODO Can't find above so using what I have available catch ME returnStartDir EASYconsole @@ -386,7 +387,7 @@ function runResults_DBcombo_Callback(~, ~, ~) DgenResults240430 %similar but semicolons removed to restore so cmdLine display info. %Dgen241010qhtcp %par4global -convert 1x1cell of 384cells to be like previous 1x384 cells CFparameter catch ME - disp('Error in DgenResults240430') + disp(strcat('Error in DgenResults240430: ', ME.message)) EASYconsole end end