Cleanhup some EASY code to remove rogue else
This commit is contained in:
@@ -345,26 +345,13 @@ 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
|
||||
end
|
||||
else
|
||||
disp('WARNING: cannot find project scans');
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user