Skip to content

Commit

Permalink
serialize extended results
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Aug 25, 2021
1 parent 4cb6f79 commit b14fe9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def getMetadata(filename, upload_folder, extended):
return msg
slideData = slide.properties
if extended:
return slideData
return {k:v for (k,v) in slideData.items()}
else:
metadata['mpp-x'] = slideData.get(openslide.PROPERTY_NAME_MPP_X, None)
metadata['mpp-y'] = slideData.get(openslide.PROPERTY_NAME_MPP_Y, None)
Expand Down

0 comments on commit b14fe9f

Please sign in to comment.