Skip to content

Commit 47ebb38

Browse files
committed
Fix group issues
1 parent ed0bea9 commit 47ebb38

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/omero_zarr/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ def export(self, args: argparse.Namespace) -> None:
415415
def extinfo(self, args: argparse.Namespace) -> None:
416416
for img, well, idx in get_images(self.gateway, args.object):
417417
img = img._obj
418+
group_id = img.getDetails().getGroup().id.val
418419
extinfo = get_extinfo(self.gateway, img)
419420
if args.set:
420421
try:

src/omero_zarr/extinfo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_extinfo(conn: BlitzGateway, image: ImageWrapper) -> ExternalInfoI:
4242
where e.id = :id
4343
"""
4444
conn.SERVICE_OPTS.setOmeroGroup("-1")
45-
extinfo = conn.getQueryService().findByQuery(query, params)
45+
extinfo = conn.getQueryService().findByQuery(query, params, conn.SERVICE_OPTS)
4646
return extinfo
4747
return None
4848

@@ -72,7 +72,7 @@ def _get_path(conn: BlitzGateway, image_id: int) -> str:
7272
where image.id = :id
7373
"""
7474
conn.SERVICE_OPTS.setOmeroGroup("-1")
75-
fs = conn.getQueryService().findByQuery(query, params)
75+
fs = conn.getQueryService().findByQuery(query, params, conn.SERVICE_OPTS)
7676
path = fs._getUsedFiles()[0]._clientPath._val
7777
return path
7878

@@ -241,8 +241,8 @@ def external_info_str(extinfo: ExternalInfoI) -> str:
241241
"""
242242
if extinfo:
243243
return (
244-
f"[entityType={_checkNone(extinfo.entityType)}\n"
245-
f" entityId={_checkNone(extinfo.entityId)}\n"
246-
f" lsid={_checkNone(extinfo.lsid)}]"
244+
f"entityType={_checkNone(extinfo.entityType)}\n"
245+
f"entityId={_checkNone(extinfo.entityId)}\n"
246+
f"lsid={_checkNone(extinfo.lsid)}"
247247
)
248248
return "None"

0 commit comments

Comments
 (0)