Cleanhup some EASY code to remove rogue else

This commit is contained in:
2024-07-31 20:53:26 -04:00
parent c4835fc9be
commit 05f2529d23

View File

@@ -345,25 +345,12 @@ function LoadDatFile_Callback(~, ~, ~)
% TODO this is pretty hacky and needs something more explicit
if isfolder(fullfile(matDir, '..','..','1')) % If Inovation Vrobot Then
try
exist(pointMapsFile, 'file')
load(pointMapsFile);
catch
try
load(fullfile(easyPath,'NImParameters.mat')); % hardcoded default
catch
disp("Could not load the NImParameters.mat file")
end
end
else % If Epson 10Plate Scans Then>
if exist(fullfile(pointMapsResultsDir,'ImParameters.mat'), 'file')
load(fullfile(pointMapsResultsDir,'ImParameters.mat'));
if load(pointMapsFile);
elseif load(fullfile(easyPath,'NImParameters.mat')); % hardcoded default
elseif load(fullfile(pointMapsResultsDir,'ImParameters.mat'));
elseif load(fullfile(easyPath,'ImParameters.mat'));
else
try
load(fullfile(easyPath,'ImParameters.mat'));
catch
disp("Could not load the ImParameters.mat file");
end
disp("Could not load the ImParameters.mat file");
end
else
disp('WARNING: cannot find project scans');