Task #8990 (closed)
Opened 7 years ago
Closed 7 years ago
Bug: userId not taken into account in RoiOptions
| Reported by: | sbesson | Owned by: | jamoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-4.4 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | jburel, wmoore, jamoore |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | n.a. |
Description
Specifying userId in omero.api.options does not filter rois by owner.
import omero
from omero.gateway import BlitzGateway
import omero.model
import omero.api
client = omero.client("localhost")
client.createSession("test","omero")
conn = BlitzGateway(client_obj=client)
images = list(conn.getObjects("Image",[506]))
roiOptions = omero.api.RoiOptions()
roiOptions.userId = omero.rtypes.rlong(conn._userid)
r = conn.getRoiService().findByImage(images[0].getPixelsId(), roiOptions)
print r.rois[0].getId().getValue()
roiOptions.userId = omero.rtypes.rlong(0)
r =conn.getRoiService().findByImage(images[0].getPixelsId(), roiOptions)
print r.rois[0].getId().getValue()
r =conn.getRoiService().findByImage(images[0].getPixelsId(), None)
print r.rois[0].getId().getValue()
Change History (3)
comment:1 Changed 7 years ago by jmoore
- Owner set to jmoore
comment:2 Changed 7 years ago by jmoore
- Remaining Time set to 0.25
- Status changed from new to accepted
comment:3 Changed 7 years ago by jmoore
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Fix pushed for findByImage (with and without a namspace), findByRoi, findByPlane.