Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tile source _dtype attribute #1144

Merged
merged 16 commits into from
May 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion large_image/tilesource/base.py
Original file line number Diff line number Diff line change
@@ -1601,6 +1601,7 @@ def getMetadata(self):
:magnification: if known, the magnificaiton of the image.
:mm_x: if known, the width of a pixel in millimeters.
:mm_y: if known, the height of a pixel in millimeters.
:dtype: if known, the type of values in this image.

In addition to the keys that listed above, tile sources that expose
multiple frames will also contain
@@ -1631,7 +1632,7 @@ def getMetadata(self):
:channelmap: optional. If known, a dictionary of channel names
with their offset into the channel list.

Note that this does nto include band information, though some tile
Note that this does not include band information, though some tile
sources may do so.
"""
mag = self.getNativeMagnification()
@@ -1644,6 +1645,7 @@ def getMetadata(self):
'magnification': mag['magnification'],
'mm_x': mag['mm_x'],
'mm_y': mag['mm_y'],
'dtype': self.dtype,
})

@property