-
Notifications
You must be signed in to change notification settings - Fork 10
Apply settings to Plate #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Updated to this branch on idr0125-pilot... as root... |
|
What are the differences in semantics between render_images and get_images? |
|
The method just gets images, so I found it confusing being called |
|
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 ) |
|
I think we should deprecate |
Co-authored-by: jean-marie burel <j.burel@dundee.ac.uk>
Add deprecated render_images method again
src/omero_cli_render.py
Outdated
| self._update_channel_names(self.gateway, iids, namedict) | ||
|
|
||
| def set_image_settings(self, img, data, cindices, rangelist, | ||
| colourlist, greyscale, minmaxlist, args): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, renamed it
Trying to fix issues with
omero render copy Image:ID Plate:IDfor 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.