Skip to content

Commit

Permalink
Fix logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Dowrick committed Sep 29, 2020
1 parent 22131db commit 08b52bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sksurgeryvtk/models/voxelise.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,18 +345,18 @@ def voxelise(input_mesh: Union[np.ndarray, vtk.vtkDataObject, str],
tf = vtk.vtkTransform()

if scale_input is not None:
LOGGER.debug("Scaling point cloud by:", scale_input)
LOGGER.debug("Scaling point cloud by: %s", scale_input)
tf.Scale([scale_input] * 3)
if move_input is not None:
LOGGER.debug("Moving point cloud by:", move_input)
LOGGER.debug("Moving point cloud by: %s", move_input)
tf.Translate(move_input)
if center:
bounds = [0] * 6
mesh.GetBounds(bounds)
dx = -(bounds[1] + bounds[0]) * 0.5
dy = -(bounds[3] + bounds[2]) * 0.5
dz = -(bounds[5] + bounds[4]) * 0.5
LOGGER.debug("Moving point cloud by:", (dx, dy, dz))
LOGGER.debug("Moving point cloud by: %s", (dx, dy, dz))
tf.Translate((dx, dy, dz))
if reuse_transform:
try:
Expand Down

0 comments on commit 08b52bd

Please sign in to comment.