Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10805 (closed)

Opened 11 years ago

Closed 11 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 11 years ago by jamoore

  • Milestone changed from OMERO-4.4.7 to OMERO-4.4.9

comment:2 Changed 11 years ago by sbesson

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.72036 sec.)

We're Hiring!