Skip to content
Snippets Groups Projects
Commit 677daa10 authored by leprob001's avatar leprob001
Browse files

fix: Added missing parsing to double of referenceStart and referenceEnd while validating user input

parent 52a9245b
No related branches found
No related tags found
No related merge requests found
329
\ No newline at end of file
330
\ No newline at end of file
......@@ -29,12 +29,16 @@ if any(isempty(pCombinationsTable.trackingMethod)) ...
return;
end
if any(cellfun(@(x) length(strsplit(x)), pCombinationsTable.referencePosition) ~= 2)
referenceStart = cellfun(@(x) strsplit(x), pCombinationsTable.referencePosition, 'UniformOutput', false);
referenceStart = cell2mat(cellfun(@(x) str2double(x), referenceStart, 'UniformOutput', false));
if any(length(referenceStart) ~= 2) || any(isnan(referenceStart))
message = '(Reference) Position START column contains at least one error. Please double check this column.';
return;
end
if any(cellfun(@(x) length(strsplit(x)), pCombinationsTable.referencePositionEnd) ~= 2)
referenceEnd = cellfun(@(x) strsplit(x), pCombinationsTable.referencePositionEnd, 'UniformOutput', false);
referenceEnd = cell2mat(cellfun(@(x) str2double(x), referenceEnd, 'UniformOutput', false));
if any(length(referenceEnd) ~= 2) || any(isnan(referenceEnd))
message = '(Reference) Position END column contains at least one error. Please double check this column.';
return;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment