Task #10805 (closed)
Opened 6 years ago
Closed 6 years ago
Bug: OMERO.matlab getImages & getAnnotations
| Reported by: | sbesson | Owned by: | sbesson |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-4.4.9 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | analysis@… |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | 2013-05-07 (8) |
Description
As reported by Simon in https://github.com/openmicroscopy/ome-documentation/pull/345 some of the signatures described in the Matlab documentation page are not working, especially the getImages belonging to all datasets & projects
>> z=getImages(session,'project',[]) Error using getImages (line 60) Argument 'project' failed validation @(x)isvector(x)&&isnumeric(x).
and get*Anntoations using the loaded objects instead of the ID:
>> tagAnnotations = getImageTagAnnotations(session, image)
No constructor 'java.lang.Long' with matching signature found.
Error in toJavaList (line 54)
javaList.add(castFun(matlabList(i)));
Error in getObjectAnnotations (line 57)
ids = toJavaList(ids, 'java.lang.Long');
Error in getImageTagAnnotations (line 40)
tas = getObjectAnnotations(session, 'tag', 'image', ids, varargin{:});
This should be fixed to stick to the documentation. In the mid-term, all these functions need to be properly tested with integration tests.
Change History (2)
comment:1 Changed 6 years ago by jamoore
- Milestone changed from OMERO-4.4.7 to OMERO-4.4.9
comment:2 Changed 6 years ago by sbesson
- Resolution set to fixed
- Status changed from new to closed
See https://github.com/openmicroscopy/openmicroscopy/pull/1160