[ome-users] Update Examples for OMERO 5.2

Paul Kibet Korir pkorir at ebi.ac.uk
Mon Nov 16 10:58:10 GMT 2015


Hi Will,

Thanks for your response.

I'll give the link you've sent a shot and get back to you if need be.

Kind regards,

Paul

On 16/11/2015 10:41, William Moore wrote:
> Hi Paul,
>
>  Apologies for not keeping our docs up to date - fixing that now.
>
> You can find the code samples that are used in the docs
> at 
> https://github.com/openmicroscopy/openmicroscopy/tree/v5.2.0/examples/Training/python
> (I think there's a link to here from the page itself).
>
> These are more up to date, and are run automatically as part of our 
> daily builds
> (although the ROIs.py example was broken for "point" and should be 
> fixed in
> https://github.com/openmicroscopy/openmicroscopy/pull/4331).
>
> Hope this example helps.
>
> If not, let us know what error you're getting.
>
>  Regards,
>
>   Will
>
>
>
> On 13 Nov 2015, at 16:37, Paul Kibet Korir <pkorir at ebi.ac.uk 
> <mailto:pkorir at ebi.ac.uk>> wrote:
>
>> Greetings!
>>
>> I'm working my way through examples for OMERO 5.2 at the link below.
>>
>> https://www.openmicroscopy.org/site/support/omero5.2/developers/Python.html
>>
>> The location of functions appears to have changed.
>>
>> *Examples:*
>> ---
>> rect = omero.model.RectI()
>> rect.x = rdouble(x)
>> ...
>> rect.theT = rint(theT)
>> rect.textValue = rstring("test-Rectangle")
>> ---
>>
>> which work with
>>
>> ---
>> import omero.rtypes
>> rect = omero.model.RectangleI()
>> rect.x = omero.rtypes.rdouble()
>> ...
>> rect.theT = omero.rtypes.rint(theT)
>> rect.setTextValue(omero.rtypes.rstring("test-Rectangle"))
>> ---
>>
>> However, I can't figure out how what the correct format for this 
>> should be:
>>
>> r = updateService.saveAndReturnObject(roi)
>> # the 'saveAndReturnObject(roi) method doesn't seem to exist anymore
>>
>> What is the current rendering of this?
>>
>> Could someone update the documentation to reflect the above changes?
>>
>> -- 
>> With kind regards,
>>
>> *Paul K Korir, PhD*
>> /Scientific Programmer/
>> EMBL-EBI
>> Main Building, A2-35,
>> WTGC, Hinxton, Cambridge CB10 1SD
>> P: +44 1223 49 44 22
>> F: +44 1223 49 44 68
>> _______________________________________________
>> ome-users mailing list
>> ome-users at lists.openmicroscopy.org.uk 
>> <mailto:ome-users at lists.openmicroscopy.org.uk>
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
>
>
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users

-- 
With kind regards,

*Paul K Korir, PhD*
/Scientific Programmer/
EMBL-EBI
Main Building, A2-35,
WTGC, Hinxton, Cambridge CB10 1SD
P: +44 1223 49 44 22
F: +44 1223 49 44 68
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20151116/76b7c09f/attachment.html>


More information about the ome-users mailing list