Commit 6dc0fd02d7cc8e012babfe6ced413c3b181e9469

Authored by Thiago Franco de Moraes
1 parent 3b3e3f88
Exists in master

Removed prints and convert a print to python3

invesalius/data/editor.py
... ... @@ -117,9 +117,7 @@ class Editor:
117 117 # a = (int(self.txtThresI.GetValue()), int(self.txtThresF.GetValue()))
118 118 # self.editor.SetOperationType(op, a)
119 119 wx, wy, wz = self.From3dToImagePixel(pos, (x, y, z))
120   - print "Comecei"
121 120 self.DoOperation(wx, wy, wz)
122   - print "Terminei"
123 121 Publisher.sendMessage('Update images', self.image)
124 122 Publisher.sendMessage('Update viewer', None)
125 123  
... ... @@ -135,7 +133,6 @@ class Editor:
135 133 """
136 134 x, y, z = pPos
137 135 bounds = self.actor.GetBounds()
138   - print bounds
139 136  
140 137 #c = vtk.vtkCoordinate()
141 138 #c.SetCoordinateSystemToWorld()
... ... @@ -228,15 +225,11 @@ class Editor:
228 225 cursor = self.cursor
229 226 b = [0,0,0,0,0,0]
230 227 self.actor.GetDisplayBounds(b)
231   - print "To Paint", xc, yc, zc
232   - print "Bounds", b
233   - print "dimensions", self.image.GetDimensions()
234 228 xs, ys, zs = self.image.GetSpacing()
235 229 try:
236 230 zs = (b[-1]-b[-2]) / self.image.GetDimensions()[2]
237 231 except ZeroDivisionError:
238 232 pass
239   - print xs, ys, zs
240 233 if self.orientation == AXIAL:
241 234 o = lambda x, y: (xc + x, y + yc, zc)
242 235 elif self.orientation == CORONAL:
... ...
invesalius/data/orientation.py
... ... @@ -34,7 +34,6 @@ class Orientation(object):
34 34 extent = self.image.GetWholeExtent()
35 35  
36 36 if orientation == AXIAL:
37   - print "AXIAL"
38 37 cam.SetFocalPoint(0, 0, 0)
39 38 cam.SetPosition(0, 0, 1)
40 39 cam.ComputeViewPlaneNormal()
... ... @@ -44,7 +43,6 @@ class Orientation(object):
44 43 ys = extent[3] - extent[2] + 1
45 44  
46 45 elif orientation == CORONAL:
47   - print "Coronal"
48 46 cam.SetFocalPoint(0, 0, 0)
49 47 cam.SetPosition(0, -1, 0)
50 48 cam.ComputeViewPlaneNormal()
... ... @@ -54,7 +52,6 @@ class Orientation(object):
54 52 ys = extent[5] - extent[4] + 1
55 53  
56 54 elif orientation == SAGITAL:
57   - print "Sagital"
58 55 cam.SetFocalPoint(0, 0, 0)
59 56 cam.SetPosition(1, 0, 0)
60 57 cam.ComputeViewPlaneNormal()
... ...
invesalius/data/volume_widgets.py
... ... @@ -65,7 +65,7 @@ class Plane():
65 65 else:
66 66 self.Update()
67 67 if self.widget.GetEnabled():
68   - print "send signal - update slice info in panel and in 2d"
  68 + print("send signal - update slice info in panel and in 2d")
69 69  
70 70  
71 71 def SetInput(self, imagedata):
... ...