Skip to content

Commit

Permalink
Show aperio version in internal metadata.
Browse files Browse the repository at this point in the history
This just separates out a value from another field.
  • Loading branch information
manthey committed Aug 20, 2020
1 parent adc23c4 commit a1101fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/openslide/large_image_source_openslide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def getInternalMetadata(self, **kwargs):
results = {'openslide': {}}
for key in self._openslide.properties:
results['openslide'][key] = self._openslide.properties[key]
if (key == 'openslide.comment' and
'aperio' in self._openslide.properties[key].split('\n', 1)[0].lower()):
results['aperio version'] = self._openslide.properties[key].split('\n', 1)[0].strip()
return results

@methodcache()
Expand Down

0 comments on commit a1101fd

Please sign in to comment.