Page 1 of 1

Setting a Parent Image ID in description field

PostPosted: Tue May 20, 2014 7:18 am
by PaulVanSchayck
Dear all,

In the final report of the DMBI workgroup I found the following image:

Image

Here an inside the image description/comment field a clickable link to another image is shown. I would like to recreate something like this, being able to link a processed image back to an original image. Setting the description field from a Python script has been no problem:

Code: Select all
image = conn.getQueryService().get("Image", imageId)
   
image.setDescription(rstring("Parent Image ID:351"))
       
conn.getUpdateService().saveObject(image)


However, this does not automatically create the link as shown in the image. How has this been done, or is there any other way of linking one image to another?

Thanks,

Paul

Re: Setting a Parent Image ID in description field

PostPosted: Tue May 20, 2014 12:59 pm
by jburel
Thanks Paul
This is a bug in insight. Some code got removed during some refactoring.
There is nothing wrong in your code.
I have fixed the issue and opened a Pull Request see
https://github.com/openmicroscopy/openm ... /pull/2523

Thanks
Jmarie

Re: Setting a Parent Image ID in description field

PostPosted: Wed May 21, 2014 6:33 am
by PaulVanSchayck
Thanks Jmari for the quick reply and fix!

Re: Setting a Parent Image ID in description field

PostPosted: Thu May 22, 2014 11:46 am
by jburel
Hi Paul
The fix will be included in the coming 5.0.2 release
Regards
Jmarie