[ome-users] Deleting an ROI

William Moore will at lifesci.dundee.ac.uk
Mon Jan 25 21:30:26 GMT 2016


Hi Paul,

 In fact, the Blitz Gateway gives you a short cut if you don’t actually need to handle the 
delete response yourself.
You can simply use wait=True, and the delete will be done before this returns.

conn.deleteObjects("Roi", [roiId], wait=True)

I’ve added an example of this, and updated the docs as you suggested in 
https://github.com/openmicroscopy/openmicroscopy/pull/4442 <https://github.com/openmicroscopy/openmicroscopy/pull/4442>

 Cheers,

   Will.



> On 21 Jan 2016, at 13:10, Paul Kibet Korir <pkorir at ebi.ac.uk> wrote:
> 
> Thanks. Including the callback worked.
> 
> P
> 
> On 21/01/2016 11:56, Mark Carroll wrote:
>> On 01/21/2016 11:47 AM, Paul Kibet Korir wrote: 
>> (snip) 
>>>      handle = conn.deleteObjects( 
>>>          "Roi", 
>>>          obj_ids, 
>>>          deleteAnns=True, 
>>>          deleteChildren=True 
>>>          ) 
>>> 
>>> 
>>>      conn._closeSession() 
>>> 
>>> What could I be doing wrong? 
>> 
>> Thank you for sharing your test code. Try the next bit of code from the 
>> same page, "Retrieve callback and wait until delete completes". (-: You 
>> can probably just paste it in verbatim. 
>> 
>> -- Mark 
>> 
>> The University of Dundee is a registered Scottish Charity, No: SC015096 
>> _______________________________________________ 
>> 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 <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
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20160125/8519fb2d/attachment.html>


More information about the ome-users mailing list