-
Notifications
You must be signed in to change notification settings - Fork 32
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
get objects by map annotations #285
get objects by map annotations #285
Conversation
used folllowing workflow to set up the testing env:
Use a script which contains lines from the description of this PR |
What is the way to sanitize one's script against the case that no images with specified KVPs were found ? The "generator" object which is returned by the methods added here has not a length zero even if turned into a list and checked for length ? Constantly crashing on things like
The bit of code which is crashing is not the new method itself, but the following code which is trying to consume the "generator" object created by the method...
The bit inside the for loop above is crashing, but only when no images are found. When some images are found, then the script ends with a success. |
Just tried to read the retrieved Images (objects) which were returned by the methods added in this PR just as specified in https://docs.openmicroscopy.org/omero/5.6.3/developers/Python.html#read-data But, again, when no images are found, the same error as in #285 (comment) happened. Maybe something is really wrong with the Image objects (generators) returned by the new methods here ? |
Tested all three options in the header of this PR. All works, including the cases where no images are retrieved. Also tried to add the KVP on a Project, worked too. All good fmpov. |
In general, probably a good example of something that needs to be moved server-side (or into the eventual JSON API). 👍 |
See request for "How to query objects by map annotation?"
We don't have any examples at https://docs.openmicroscopy.org/omero/5.6.3/developers/Python.html
and need to look into Mapr source to find out how.
https://forum.image.sc/t/harmonization-of-image-metadata-for-different-file-formats-omero-mde/50827/10
This adds method to gateway:
To consider:
*
: e.g.key='Anti*'
*
with%%
and uselike
in the HQL query.TODO: