Skip to content
Commits on Source (2)
invesalius (3.1.99992-2) UNRELEASED; urgency=medium
* Patch to remove python2 prints
-- Thiago Franco de Moraes <tfmoraes@cti.gov.br> Wed, 12 Sep 2018 10:54:57 -0300
invesalius (3.1.99992-1) unstable; urgency=medium
* New upstream version
......
Author: Thiago Franco Moraes
Last-Update: 2018-09-12 10:27:25 -0300
Description: Remove python2 prints
diff --git a/invesalius/data/editor.py b/invesalius/data/editor.py
index bd731217..d1479763 100644
--- a/invesalius/data/editor.py
+++ b/invesalius/data/editor.py
@@ -117,9 +117,7 @@ class Editor:
# a = (int(self.txtThresI.GetValue()), int(self.txtThresF.GetValue()))
# self.editor.SetOperationType(op, a)
wx, wy, wz = self.From3dToImagePixel(pos, (x, y, z))
- print "Comecei"
self.DoOperation(wx, wy, wz)
- print "Terminei"
Publisher.sendMessage('Update images', self.image)
Publisher.sendMessage('Update viewer', None)
@@ -135,7 +133,6 @@ class Editor:
"""
x, y, z = pPos
bounds = self.actor.GetBounds()
- print bounds
#c = vtk.vtkCoordinate()
#c.SetCoordinateSystemToWorld()
@@ -228,15 +225,11 @@ class Editor:
cursor = self.cursor
b = [0,0,0,0,0,0]
self.actor.GetDisplayBounds(b)
- print "To Paint", xc, yc, zc
- print "Bounds", b
- print "dimensions", self.image.GetDimensions()
xs, ys, zs = self.image.GetSpacing()
try:
zs = (b[-1]-b[-2]) / self.image.GetDimensions()[2]
except ZeroDivisionError:
pass
- print xs, ys, zs
if self.orientation == AXIAL:
o = lambda x, y: (xc + x, y + yc, zc)
elif self.orientation == CORONAL:
diff --git a/invesalius/data/orientation.py b/invesalius/data/orientation.py
index 850306f3..3bcb35f7 100644
--- a/invesalius/data/orientation.py
+++ b/invesalius/data/orientation.py
@@ -34,7 +34,6 @@ class Orientation(object):
extent = self.image.GetWholeExtent()
if orientation == AXIAL:
- print "AXIAL"
cam.SetFocalPoint(0, 0, 0)
cam.SetPosition(0, 0, 1)
cam.ComputeViewPlaneNormal()
@@ -44,7 +43,6 @@ class Orientation(object):
ys = extent[3] - extent[2] + 1
elif orientation == CORONAL:
- print "Coronal"
cam.SetFocalPoint(0, 0, 0)
cam.SetPosition(0, -1, 0)
cam.ComputeViewPlaneNormal()
@@ -54,7 +52,6 @@ class Orientation(object):
ys = extent[5] - extent[4] + 1
elif orientation == SAGITAL:
- print "Sagital"
cam.SetFocalPoint(0, 0, 0)
cam.SetPosition(1, 0, 0)
cam.ComputeViewPlaneNormal()
diff --git a/invesalius/data/volume_widgets.py b/invesalius/data/volume_widgets.py
index c1fd73ad..651d0323 100644
--- a/invesalius/data/volume_widgets.py
+++ b/invesalius/data/volume_widgets.py
@@ -65,7 +65,7 @@ class Plane():
else:
self.Update()
if self.widget.GetEnabled():
- print "send signal - update slice info in panel and in 2d"
+ print("send signal - update slice info in panel and in 2d")
def SetInput(self, imagedata):
10_sample_path.patch
10_import_cython_modules.patch
10_remove_python2_shebang.patch
10_remove_py2_prints.patch