Skip to content

Conversation

@will-moore
Copy link
Member

@will-moore will-moore commented Oct 25, 2023

Trying to fix issues with omero render copy Image:ID Plate:ID for idr0125 data (see IDR/idr0125-way-cellpainting#4 (comment)).

The main change here is to use the OMERO API self.gateway.applySettingsToSet(image_id, "plate", [plate_id]) for that command, instead of making a long list of Image IDs and applying it to those images.
This should improve performance, particularly for larger plates.

@will-moore
Copy link
Member Author

Updated to this branch on idr0125-pilot... as root...

$ pip uninstall omero-cli-render
Found existing installation: omero-cli-render 0.7.0
$ pip install 'omero-cli-render @ git+https://github.com/will-moore/omero-cli-render@applySettingsToSe'
...
Successfully installed omero-cli-render-0.8.1.dev0
omero --debug=2 render copy Image:15910651 Plate:11002 > /tmp/idr0125_PR59_plate_11002.log 2>/tmp/idr0125_PR59_plate_11002.err;

@joshmoore
Copy link
Member

What are the differences in semantics between render_images and get_images?

@will-moore
Copy link
Member Author

The method just gets images, so I found it confusing being called render_images as that implies it was rendering images.
The rendering (loading thumbnails) happens at a later stage and takes much longer time than the initial getting images.

@jburel jburel closed this Nov 21, 2024
@jburel jburel reopened this Nov 21, 2024
@dominikl
Copy link
Member

dominikl commented Feb 4, 2025

I couldn't see a performance increase (tested on smaller plates like idr0139), but I think the PR would be good to merge, definitely makes the code easier to understand. Any objections? (/cc @jburel )

@jburel
Copy link
Member

jburel commented Dec 11, 2025

I think we should deprecate render_image and introduce a new one and render_image invokes the new method

dominikl and others added 3 commits December 11, 2025 14:06
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
Add deprecated render_images method again
self._update_channel_names(self.gateway, iids, namedict)

def set_image_settings(self, img, data, cindices, rangelist,
colourlist, greyscale, minmaxlist, args):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to match the parameter name it is preferable to use "colorlist"
i.e. colors=colourlist

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That variable is created outside this PR. It feels like we are never going to get this merged!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That spelling occurs 7 times in the file. Do I rename them all? Will it need retesting after that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you introduce a new function. This is not a global variable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, renamed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants