Skip to content

Commit

Permalink
fix annotation part
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed Oct 11, 2024
1 parent 1ee41a8 commit 85c9889
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/omero/omero_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ def write_dict_to_tsv(data, headers):
write_ids_to_tsv(ds_ims, "Image IDs")
return ds_ims
elif obj_type == "annotation":
ma_dict = ez.get_map_annotation(conn, int(id))
map_annot_ids = ez.get_map_annotation_ids(conn, "Image", int(id))
ma_dict = {}
for maid in map_annot_ids:
current_ma_dict = ez.get_map_annotation(conn, maid)
ma_dict = {**ma_dict, **current_ma_dict}
write_dict_to_tsv(ma_dict, ["Annotation ID", "Annotation Value"])
return ma_dict
elif obj_type == "project":
Expand Down

0 comments on commit 85c9889

Please sign in to comment.