Skip to content

Commit cc3bb8b

Browse files
committed
Add method to access physical size for Z axis
Fixes #96
1 parent 4ca7b3c commit cc3bb8b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bioformats/omexml.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,13 @@ def set_PhysicalSizeY(self, value):
622622
self.node.set("PhysicalSizeY", str(value))
623623
PhysicalSizeY = property(get_PhysicalSizeY, set_PhysicalSizeY)
624624

625+
def get_PhysicalSizeZ(self):
626+
'''The size of a voxel in Z direction or None for 2D images.'''
627+
return get_float_attr(self.node, "PhysicalSizeZ")
628+
def set_PhysicalSizeZ(self, value):
629+
self.node.set("PhysicalSizeZ", str(value))
630+
PhysicalSizeZ = property(get_PhysicalSizeZ, set_PhysicalSizeZ)
631+
625632
def set_PixelType(self, value):
626633
self.node.set("Type", value)
627634
PixelType = property(get_PixelType, set_PixelType)

0 commit comments

Comments
 (0)