diff --git a/tools/omero/omero_get.py b/tools/omero/omero_get.py index 085f886f..5e0dd85d 100644 --- a/tools/omero/omero_get.py +++ b/tools/omero/omero_get.py @@ -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":