Skip to content

Commit 76b36f6

Browse files
authored
Merge pull request #102 from imcf/issues/96
Add method to access physical size for Z axis
2 parents 3e58906 + cc3bb8b commit 76b36f6

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
@@ -643,6 +643,13 @@ def set_PhysicalSizeY(self, value):
643643
self.node.set("PhysicalSizeY", str(value))
644644
PhysicalSizeY = property(get_PhysicalSizeY, set_PhysicalSizeY)
645645

646+
def get_PhysicalSizeZ(self):
647+
'''The size of a voxel in Z direction or None for 2D images.'''
648+
return get_float_attr(self.node, "PhysicalSizeZ")
649+
def set_PhysicalSizeZ(self, value):
650+
self.node.set("PhysicalSizeZ", str(value))
651+
PhysicalSizeZ = property(get_PhysicalSizeZ, set_PhysicalSizeZ)
652+
646653
def set_PixelType(self, value):
647654
self.node.set("Type", value)
648655
PixelType = property(get_PixelType, set_PixelType)

0 commit comments

Comments
 (0)