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
Exclude datasets containing images linked to wells #57
Conversation
Good to merge |
def has_images_linked_to_well(dataset): | ||
params = omero.sys.Parameters() | ||
params.map = {} | ||
query = "select well from Well as well "\ |
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 could return count(well)
rather than wells to reduce overhead by using getQueryService().projection()
Test scenarios:
Good to merge. |
Thanks, @bpindelski. @chris-allan : any thing needed for the worst-case fix? If not, merging tomorrow AM. |
Just one thing to query which is the use of |
Good catch @chris-allan. |
Done |
With
|
Looking good. |
Exclude datasets containing images linked to wells
--rebased-to #61 |
This PR fixes https://trac.openmicroscopy.org.uk/ome/ticket/11848
For each found dataset, a query is submitted to find all contained images linked to wells and exclude this dataset. The number of excluded datasets is returned to the client output and the ID of the excluded datasets is stored in the script log.
To test this PR:
Dataset To Plate
multiple times on the same dataset with theRemove from Dataset
option turned offDataset To Plate
on a mixture of freshly import datasets and datasets already converted to plate using theDataset To Plate
script with theRemove from Dataset
option turned offDataset To Plate
on a dataset containing a mixture of freshly imported images and images linked to wells (e.g. runDataset To Plate
with theRemove from Dataset
option turned off on a dataset and cut and paste a subset of its images to another dataset)/cc @will-moore, @chris-allan