@@ -38,6 +38,7 @@ def get_extinfo(conn: BlitzGateway, image: ImageWrapper) -> ExternalInfoI:
3838 select e from ExternalInfo as e
3939 where e.id = :id
4040 """
41+ conn .SERVICE_OPTS .setOmeroGroup ("-1" )
4142 extinfo = conn .getQueryService ().findByQuery (query , params )
4243 return extinfo
4344 return None
@@ -66,6 +67,7 @@ def _get_path(conn: BlitzGateway, image_id: int) -> str:
6667 join fetch usedFile.originalFile as f
6768 join fetch f.hasher where image.id = :id
6869 """
70+ conn .SERVICE_OPTS .setOmeroGroup ("-1" )
6971 fs = conn .getQueryService ().findByQuery (query , params )
7072 res = fs ._getUsedFiles ()[0 ]._clientPath ._val
7173 return res
@@ -93,7 +95,7 @@ def _lookup(conn: BlitzGateway, type: str, oid: int) -> BlitzObjectWrapper:
9395 return obj
9496
9597
96- def get_images (conn : BlitzGateway , object ) -> tuple [ImageWrapper , str | None , int | None ]:
98+ def get_images (conn : BlitzGateway , object ) -> tuple [ImageWrapper , str , int ]:
9799 """
98100 Generator that yields images from any OMERO container object.
99101
@@ -143,7 +145,7 @@ def get_images(conn: BlitzGateway, object) -> tuple[ImageWrapper, str | None, in
143145
144146
145147def set_external_info (conn : BlitzGateway , img : ImageI , well : str , idx : int ,
146- lsid : str | None = None , entityType : str | None = None , entityId : int | None = None ) -> ImageI :
148+ lsid : str , entityType : str , entityId : int ) -> ImageI :
147149 """
148150 Set the external info for an OMERO image.
149151
0 commit comments