-
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
add getROIs #380
add getROIs #380
Conversation
Hi, and thanks for the suggestion. Methods of the BlitzGateway (e.g. However, you wouldn't want to init all those objects when just counting ROIs as there's potential for |
Good stuff, thanks! getROIs and getROICount now use a private function _get_rois to get valid roi model objects, and getROIs wraps those and returns them. |
Just added the --include label, since I noticed this wasn't being merged in the daily build: see https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-python-superbuild-push/271/console Then we can confirm tests are still passing at https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/lastCompletedBuild/testReport/OmeroPy.test.integration.test_rois/ In due course, it would also be nice to add tests for |
src/omero/gateway/__init__.py
Outdated
filterByCurrentUser is True, otherwise the total rois | ||
found. | ||
""" | ||
return [RoiWrapper(self.conn, roi) for roi in |
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.
This needs to be self._conn
(missing underscore).
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.
Sorry about that and the delay to fix, been OOO. should be good now. I wouldn't mind writing up a little test in the openmicroscopy repo if you guys want me to. thanks y'all!
PR is being merged now, e.g. |
hey y'all! I was going to put a patch into our groups dev library but i figured I'd see if you wanted it. Since getROICount already gets the ROIs i just put the get part in a different method and made count just check the length of results.