Skip to content

Commit

Permalink
Merge pull request #474 from girder/openslide-aperio-version
Browse files Browse the repository at this point in the history
Show aperio version in internal metadata.
  • Loading branch information
manthey authored Aug 20, 2020
2 parents adc23c4 + 54a3498 commit 222d2a1
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 222d2a1

Please sign in to comment.