Task #9167 (new)
Opened 12 years ago
Last modified 9 years ago
RFE: shapes not taken into account in RoiOptions
Reported by: | sbesson | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | ROI |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Below is a failing test
def testShapeFilter(self): # RoiOptions.shapes img = self.createTestImage() img = self.update.saveAndReturnObject(img) img.unload() iid = img.id.val roi = omero.model.RoiI() roi.setImage(img) roi.addShape(omero.model.RectI()) roi = self.update.saveAndReturnObject(roi) roiService = self.client.sf.getRoiService() def assertRois(shapetype, byimage): roiOptions = omero.api.RoiOptions() if shapetype: roiOptions.shapes = shapetype r = roiService.findByImage(iid, roiOptions) self.assertEquals(byimage, len(r.rois)) assertRois(None,1) assertRois(["Rect"],1) assertRois(["Rect","Ellipse"],1) assertRois(["Ellipse"],0)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.