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