Commit 162a620aa3075a3112c71afcf1d36bb9958d0d06
1 parent
8b08a7ca
Exists in
master
and in
25 other branches
Remove unnecessary prints
Showing
2 changed files
with
0 additions
and
17 deletions
Show diff stats
invesalius/data/measures.py
| ... | ... | @@ -170,20 +170,14 @@ class MeasurementManager(object): |
| 170 | 170 | |
| 171 | 171 | to_remove = False |
| 172 | 172 | if self.current is None: |
| 173 | - print "To Create" | |
| 174 | 173 | to_create = True |
| 175 | 174 | elif self.current[0].location != location: |
| 176 | - print "To Create" | |
| 177 | - print "To Remove" | |
| 178 | 175 | to_create = True |
| 179 | 176 | to_remove = True |
| 180 | 177 | elif self.current[0].slice_number != slice_number: |
| 181 | - print "To Create" | |
| 182 | - print "To Remove" | |
| 183 | 178 | to_create = True |
| 184 | 179 | to_remove = True |
| 185 | 180 | else: |
| 186 | - print "To not Create" | |
| 187 | 181 | to_create = False |
| 188 | 182 | |
| 189 | 183 | if to_create: |
| ... | ... | @@ -198,7 +192,6 @@ class MeasurementManager(object): |
| 198 | 192 | else: |
| 199 | 193 | mr = AngularMeasure(m.colour, representation) |
| 200 | 194 | if to_remove: |
| 201 | - print "---To REMOVE" | |
| 202 | 195 | # actors = self.current[1].GetActors() |
| 203 | 196 | # slice_number = self.current[0].slice_number |
| 204 | 197 | # Publisher.sendMessage(('Remove actors ' + str(self.current[0].location)), |
| ... | ... | @@ -251,7 +244,6 @@ class MeasurementManager(object): |
| 251 | 244 | |
| 252 | 245 | def _change_measure_point_pos(self, pubsub_evt): |
| 253 | 246 | index, npoint, pos = pubsub_evt.data |
| 254 | - print index, npoint, pos | |
| 255 | 247 | m, mr = self.measures[index] |
| 256 | 248 | x, y, z = pos |
| 257 | 249 | if npoint == 0: |
| ... | ... | @@ -322,7 +314,6 @@ class MeasurementManager(object): |
| 322 | 314 | |
| 323 | 315 | m, mr = self.current |
| 324 | 316 | if not mr.IsComplete(): |
| 325 | - print "---To REMOVE" | |
| 326 | 317 | idx = self.measures._list_measures.index((m, mr)) |
| 327 | 318 | self.measures.remove((m, mr)) |
| 328 | 319 | Publisher.sendMessage("Remove GUI measurement", idx) |
| ... | ... | @@ -477,7 +468,6 @@ class LinearMeasure(object): |
| 477 | 468 | if not representation: |
| 478 | 469 | representation = CirclePointRepresentation(colour) |
| 479 | 470 | self.representation = representation |
| 480 | - print colour | |
| 481 | 471 | |
| 482 | 472 | def IsComplete(self): |
| 483 | 473 | """ |
| ... | ... | @@ -671,7 +661,6 @@ class AngularMeasure(object): |
| 671 | 661 | if not representation: |
| 672 | 662 | representation = CirclePointRepresentation(colour) |
| 673 | 663 | self.representation = representation |
| 674 | - print colour | |
| 675 | 664 | |
| 676 | 665 | def IsComplete(self): |
| 677 | 666 | return not self.point_actor3 is None |
| ... | ... | @@ -762,8 +751,6 @@ class AngularMeasure(object): |
| 762 | 751 | line.AddInputConnection(line2.GetOutputPort()) |
| 763 | 752 | line.AddInputConnection(arc.GetOutputPort()) |
| 764 | 753 | |
| 765 | - print line | |
| 766 | - | |
| 767 | 754 | c = vtk.vtkCoordinate() |
| 768 | 755 | c.SetCoordinateSystemToWorld() |
| 769 | 756 | |
| ... | ... | @@ -894,8 +881,6 @@ class AngularMeasure(object): |
| 894 | 881 | """ |
| 895 | 882 | v1 = [j-i for i,j in zip(self.points[0], self.points[1])] |
| 896 | 883 | v2 = [j-i for i,j in zip(self.points[2], self.points[1])] |
| 897 | - #print vtk.vtkMath.Normalize(v1) | |
| 898 | - #print vtk.vtkMath.Normalize(v2) | |
| 899 | 884 | try: |
| 900 | 885 | cos = vtk.vtkMath.Dot(v1, v2)/(vtk.vtkMath.Norm(v1)*vtk.vtkMath.Norm(v2)) |
| 901 | 886 | except ZeroDivisionError: | ... | ... |
invesalius/data/viewer_slice.py
| ... | ... | @@ -1338,11 +1338,9 @@ class Viewer(wx.Panel): |
| 1338 | 1338 | self.slice_data.renderer.ResetCameraClippingRange() |
| 1339 | 1339 | |
| 1340 | 1340 | def UpdateRender(self, evt): |
| 1341 | - print "Updating viewer", self.orientation | |
| 1342 | 1341 | self.interactor.Render() |
| 1343 | 1342 | |
| 1344 | 1343 | def UpdateCanvas(self, evt=None): |
| 1345 | - print "Updating viewer and canvas", self.orientation | |
| 1346 | 1344 | self.canvas.modified = True |
| 1347 | 1345 | self.interactor.Render() |
| 1348 | 1346 | ... | ... |