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
|
% TODO this is pretty hacky and needs something more explicit
|
||||||
if isfolder(fullfile(matDir, '..','..','1')) % If Inovation Vrobot Then
|
if isfolder(fullfile(matDir, '..','..','1')) % If Inovation Vrobot Then
|
||||||
try
|
if load(pointMapsFile);
|
||||||
exist(pointMapsFile, 'file')
|
elseif load(fullfile(easyPath,'NImParameters.mat')); % hardcoded default
|
||||||
load(pointMapsFile);
|
elseif load(fullfile(pointMapsResultsDir,'ImParameters.mat'));
|
||||||
catch
|
elseif load(fullfile(easyPath,'ImParameters.mat'));
|
||||||
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'));
|
|
||||||
else
|
else
|
||||||
try
|
|
||||||
load(fullfile(easyPath,'ImParameters.mat'));
|
|
||||||
catch
|
|
||||||
disp("Could not load the ImParameters.mat file");
|
disp("Could not load the ImParameters.mat file");
|
||||||
end
|
end
|
||||||
end
|
|
||||||
else
|
else
|
||||||
disp('WARNING: cannot find project scans');
|
disp('WARNING: cannot find project scans');
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user