Skip to content

Commit

Permalink
Merge pull request #50 from camicroscope/develop
Browse files Browse the repository at this point in the history
For 3.9.2
  • Loading branch information
birm authored Apr 7, 2021
2 parents fef55f9 + f290aaf commit 5c05199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OmniLoad.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ def convertSegmentations(poly, name, area):
for x in manifest:
lookup_url = args.ld + "/" + args.pc + "/"
lookup_url += x.get("studyid", "") or x.get("study")
lookup_url += x.get("clinicaltrialsubjectid", "") or x.get("subject")
lookup_url += x.get("imageid", "") or x.get("image", "") or x.get("slide", "")
lookup_url += "/" + x.get("clinicaltrialsubjectid", "") or x.get("subject")
lookup_url += "/" + x.get("imageid", "") or x.get("image", "") or x.get("slide", "")
lookup_url += "?_format=json"
r = getWithAuth(lookup_url)
res = r.json()
try:
x['id'] = res[0]["nid"][0].value
x['id'] = res[0]["nid"][0]['value']
except:
print("[WARN] - no match for slide '" + str(x) + "', skipping")
del x
Expand Down

0 comments on commit 5c05199

Please sign in to comment.