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'));
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