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 #9167 (new)

Opened 12 years ago

Last modified 8 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)

Change History (1)

comment:1 Changed 8 years ago by jamoore

  • Milestone changed from Future to ROI
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.63936 sec.)

We're Hiring!