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 54a3498
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ def getInternalMetadata(self, **kwargs):
results = {'openslide': {}}
for key in self._openslide.properties:
results['openslide'][key] = self._openslide.properties[key]
if key == 'openslide.comment':
leader = self._openslide.properties[key].split('\n', 1)[0].strip()
if 'aperio' in leader.lower():
results['aperio_version'] = leader
return results

@methodcache()
Expand Down

0 comments on commit 54a3498

Please sign in to comment.