We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5fb793 commit 7150e80Copy full SHA for 7150e80
anamic/imaging/metadata.py
@@ -10,7 +10,8 @@ def get_pixel_size(fname):
10
scales = list(filter(lambda x: x.startswith('scales'), description.split("\n")))
11
if len(scales) >= 1:
12
scales = scales[0]
13
- return scales.split('=')[1].split(',')[0]
+ pixel_size = scales.split('=')[1].split(',')[0]
14
+ return float(pixel_size)
15
16
# Second method
17
raw_pixel_size, mul = tiff_obj.pages.pages[0].tags['YResolution'].value
0 commit comments