Closed joshmoore closed 5 years ago
passing an empty list of parent IDs enters in an infinite loop
To test the last commit, run the example described in the description but the array is empty i.e.
img_ids = []
Works like described; and with an empty array I get No image specified
👍
Copy of https://github.com/openmicroscopy/openmicroscopy/pull/5799
What this PR does
linkAnnotation supports parentID as a vector.
The input validation for parent ID accepts vector but running the function with parentID as a vector issued an error.
https://github.com/openmicroscopy/openmicroscopy/blob/c60092a554f8295c2992c407a94a2623011306b5/components/tools/OmeroM/src/annotations/linkAnnotation.m#L38
To avoid this issue, I added a
for
loop.Testing this PR
You need at least two images as parents of a tag annotation.
The modified version of linkAnnotation should link the tag to three images.
Related reading
Link to cards, tickets, other PRs:
Although
InputParser
oflinkAnnotation
acceptsparentID
as vector, it was not supported.Part of the problem was the poor documentation, so I added a lot more specifications to the comments.