Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
artoa4argo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argoTools
artoa4argo
Commits
677daa10
Commit
677daa10
authored
1 year ago
by
leprob001
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VERSION
+1
-1
1 addition, 1 deletion
VERSION
lib/+artoa/+controller/+track/+parameter/validateCombinationsInput.m
+6
-2
6 additions, 2 deletions
...+controller/+track/+parameter/validateCombinationsInput.m
with
7 additions
and
3 deletions
VERSION
+
1
−
1
View file @
677daa10
329
\ No newline at end of file
330
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/+artoa/+controller/+track/+parameter/validateCombinationsInput.m
+
6
−
2
View file @
677daa10
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment