Task #11637 (closed)
Opened 11 years ago
Closed 11 years ago
Bug: Blitz needs to enforce param types
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | critical | Milestone: | Unscheduled |
Component: | OmeroPy | Version: | 4.4.9 |
Keywords: | n.a. | Cc: | cxallan, atarkowska, jamoore, cneves |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
On howe now, this fails:
i = conn.getObject("Image", 8751) i.setActiveChannels([1], [[100,2000]], ['FFFFFF'])
Going deeper, this also fails (same error)
i._re.setChannelWindow(0, 100, 2000) WARNING:omero.gateway:ValueError on <class 'omero.gateway.OmeroGatewaySafeCallWrapper'> to <6d375b65-ae5f-4bbd-a26d-472821b6a6fcomero.api.RenderingEngine> setChannelWindow((0, 100, 2000), {}) Traceback (most recent call last): File "omero/gateway/__init__.py", line 3521, in __call__ return self.f(*args, **kwargs) File "omero_api_RenderingEngine_ice.py", line 346, in setChannelWindow return _M_omero.api.RenderingEngine._op_setChannelWindow.invoke(self, ((w, start, end), _ctx)) ValueError: invalid value for argument 2 in operation `setChannelWindow' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "omero/gateway/__init__.py", line 3524, in __call__ return self.handle_exception(e, *args, **kwargs) File "omero/gateway/__init__.py", line 3521, in __call__ return self.f(*args, **kwargs) File "omero_api_RenderingEngine_ice.py", line 346, in setChannelWindow return _M_omero.api.RenderingEngine._op_setChannelWindow.invoke(self, ((w, start, end), _ctx)) ValueError: invalid value for argument 2 in operation `setChannelWindow'
This works OK
i._re.setChannelWindow(0, float(100), float(2000))
Another example:
i.renderJpegRegion(0, 0, 0.0, 0, 1, 1) # z, t, x, y, w, h ... region = object #1 (::omero::romio::RegionDef) { x = <invalid value - expected int> y = 0 width = 1 height = 1 } ...
Change History (1)
comment:1 Changed 11 years ago by wmoore
- 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.
Fixed in https://github.com/openmicroscopy/openmicroscopy/pull/1700