Thiago Franco de Moraes pushed to branch master at Debian Med / invesalius
Commits: ed8adbc4 by Thiago Franco de Moraes at 2018-09-12T13:30:05Z Patch to remove python2 prints - - - - - dbaadb79 by Thiago Franco de Moraes at 2018-09-12T13:56:37Z Updated the changelog - - - - - 3 changed files: - debian/changelog - + debian/patches/10_remove_py2_prints.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +invesalius (3.1.99992-2) UNRELEASED; urgency=medium + + * Patch to remove python2 prints + + -- Thiago Franco de Moraes <[email protected]> Wed, 12 Sep 2018 10:54:57 -0300 + invesalius (3.1.99992-1) unstable; urgency=medium * New upstream version ===================================== debian/patches/10_remove_py2_prints.patch ===================================== @@ -0,0 +1,83 @@ +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): ===================================== debian/patches/series ===================================== @@ -1,3 +1,4 @@ 10_sample_path.patch 10_import_cython_modules.patch 10_remove_python2_shebang.patch +10_remove_py2_prints.patch View it on GitLab: https://salsa.debian.org/med-team/invesalius/compare/d3e7fc1d95a9998c65e43717d7dfe01ffd646ddd...dbaadb7973688e1123867b5583d6831b4375a945 -- View it on GitLab: https://salsa.debian.org/med-team/invesalius/compare/d3e7fc1d95a9998c65e43717d7dfe01ffd646ddd...dbaadb7973688e1123867b5583d6831b4375a945 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
