Skip to content

Commit

Permalink
Automated autoyapf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 10, 2024
1 parent 033516f commit 0371edd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Wrappers/Python/ccpi/viewer/utils/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def numpy2vtkImage(nparray, spacing=(1., 1., 1.), origin=(0, 0, 0), deep=0, outp
vtkarray = numpy_support.numpy_to_vtk(num_array=nparray,
deep=deep,
array_type=numpy_support.get_vtk_array_type(nparray.dtype))


if output is None:
img_data = vtk.vtkImageData()
Expand All @@ -135,8 +134,7 @@ def numpy2vtkImage(nparray, spacing=(1., 1., 1.), origin=(0, 0, 0), deep=0, outp
#img_data.GetPointData().SetActiveScalars('vtkarray')
img_data.SetOrigin(origin)
img_data.SetSpacing(spacing)



point_data = img_data.GetPointData()

# Print available scalar arrays
Expand Down

0 comments on commit 0371edd

Please sign in to comment.