Skip to content

Commit

Permalink
limited floating point precision in voxel dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mueller committed Jan 31, 2024
1 parent 1fec7e2 commit 1e40b2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10474,10 +10474,10 @@ def _repr_html_(self):
{self.getSizeZ()},
{self.getSizeY()},
{self.getSizeX()})"""
physical_dims = f"""(
{self.getPixelSizeZ()},
{self.getPixelSizeY()},
{self.getPixelSizeX()})"""
physical_dims = """({:.3f}, {:.3f}, {:.3f})""".format(
self.getPixelSizeZ(),
self.getPixelSizeY(),
self.getPixelSizeX())
physical_units = f"""(
{self.getPixelSizeZ(units=True).getUnit()},
{self.getPixelSizeY(units=True).getUnit()},
Expand Down

0 comments on commit 1e40b2a

Please sign in to comment.