Skip to content
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

Multiscale support #25

Merged
merged 10 commits into from
Sep 7, 2020
2 changes: 1 addition & 1 deletion src/omero_zarr/masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def image_masks_to_zarr(image: omero.gateway.Image, args: argparse.Namespace) ->

conn = image._conn
roi_service = conn.getRoiService()
result = roi_service.findByImage(image.id, None)
result = roi_service.findByImage(image.id, None, {"omero.group": "-1"})
Copy link
Member

Choose a reason for hiding this comment

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

This probably fails under group sudo but I expect that nobody will notice.

Copy link
Member Author

Choose a reason for hiding this comment

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

So under group sudo one would need to get the group of the image and use that?

Copy link
Member

Choose a reason for hiding this comment

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

If I recall correctly, one's very much locked into the group, so it's more a case of really hoping that the image is in that group. The server could be fixed to better tolerate all-groups context for group sudo so at least there is no exception if the groups do match but I don't think it's a trivial change.

Copy link
Member

Choose a reason for hiding this comment

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

(For other CLI all-groups stuff I was thinking the client could simply not attempt to set that context at all if in group sudo.)

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. But there haven't been any changes client-side to implement that, right? If so, I assume this will need to be picked up with the rest.

Copy link
Member

Choose a reason for hiding this comment

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

Right. Fine with me to have this as-is while it awaits that.

Copy link
Member Author

Choose a reason for hiding this comment

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

If there's an existing ticket for that issue, please feel free to register this PR with it.


masks = {}
shape_count = 0
Expand Down