Skip to content

Commit

Permalink
fixing get_server_path to work as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmartins committed Dec 15, 2023
1 parent f23afc6 commit bdd2b16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/generate_omero_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,12 @@ def get_server_path(anrefs: List[AnnotationRef],
ans: List[Annotation]) -> Union[str, None]:
fpath = None
for an in anrefs:
if isinstance(an, XMLAnnotation):
xml_id = an.id
else:
continue
for an_loop in ans:
if an.id == an_loop.id:
if isinstance(an_loop, XMLAnnotation):
xml_id = an_loop.id
else:
continue
for an_loop in ans:
if an_loop.id == xml_id:
if not fpath:
Expand Down
1 change: 1 addition & 0 deletions src/generate_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ def create_provenance_metadata(conn: BlitzGateway, img_id: int,
) -> Union[Tuple[MapAnnotation, AnnotationRef],
Tuple[None, None]]:
global ann_count
# needs reworking for XML
if not metadata:
return None, None
software = "omero-cli-transfer"
Expand Down

0 comments on commit bdd2b16

Please sign in to comment.