EASYconsole.m debugging

This commit is contained in:
2024-07-26 10:25:09 -04:00
parent 3f1cd6ef0e
commit fba8fa14f1

View File

@@ -77,6 +77,11 @@ function varargout = EASYconsole(varargin)
disp(strcat('Using EASY script directory: ', easyDir, ' from hardcoded default')); disp(strcat('Using EASY script directory: ', easyDir, ' from hardcoded default'));
end 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') if exist('EASY_RESULTS_DIR', 'env')
easyResultsDir=fullfile(get_env('EASY_RESULTS_DIR')); easyResultsDir=fullfile(get_env('EASY_RESULTS_DIR'));
disp(strcat('Using project prefix: ', easyResultsDir, ' from environment variable 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) for i = 1:length(templates)
d = dirs{i}; d = dirs{i};
if ~exist(fullfile(easyResultsDir, d), 'dir') if ~exist(fullfile(easyResultsDir, d), 'dir')
copyfile((fullfile(,d)), (fullfile(easyResultsDir,d))); copyfile((fullfile(easyDir,d)), (fullfile(easyResultsDir,d)));
end end
end end
@@ -312,7 +317,6 @@ function LoadDatFile_Callback(~, ~, ~)
end end
end end
catch catch
returnStartDir
end end
clear scan clear scan
@@ -334,7 +338,6 @@ function runPlateMapPintool_Callback(~, ~, ~)
try try
NImapPT NImapPT
catch ME catch ME
returnStartDir
EASYconsole EASYconsole
end end
end end
@@ -343,7 +346,6 @@ function NImCFcombo_Callback(~, ~, ~)
try try
par4Gbl_Main8c par4Gbl_Main8c
catch catch
returnStartDir
EASYconsole EASYconsole
end end
end end
@@ -352,7 +354,6 @@ function runPlateImAnal_Callback(~, ~, ~)
try try
NImStartupOnly NImStartupOnly
catch ME catch ME
returnStartDir
EASYconsole EASYconsole
end end
end end
@@ -362,7 +363,6 @@ function PlateCFit_Callback(~, ~, ~)
try try
NCstart NCstart
catch ME catch ME
returnStartDir
end end
end end
@@ -374,7 +374,8 @@ end
function runDMPexcel_Callback(~, ~, ~) function runDMPexcel_Callback(~, ~, ~)
try try
DMPexcel2mat_2024winLinix %DMPexcel2mat_2023winLinix % DMPexcel2mat_2024winLinix %DMPexcel2mat_2023winLinix
DMPexcel2mat % TODO Can't find above so using what I have available
catch ME catch ME
returnStartDir returnStartDir
EASYconsole EASYconsole
@@ -386,7 +387,7 @@ function runResults_DBcombo_Callback(~, ~, ~)
DgenResults240430 %similar but semicolons removed to restore so cmdLine display info. DgenResults240430 %similar but semicolons removed to restore so cmdLine display info.
%Dgen241010qhtcp %par4global -convert 1x1cell of 384cells to be like previous 1x384 cells CFparameter %Dgen241010qhtcp %par4global -convert 1x1cell of 384cells to be like previous 1x384 cells CFparameter
catch ME catch ME
disp('Error in DgenResults240430') disp(strcat('Error in DgenResults240430: ', ME.message))
EASYconsole EASYconsole
end end
end end