[med-svn] [Git][med-team/invesalius][master] removing unused patches

Thiago Franco de Moraes gitlab at salsa.debian.org
Tue May 21 17:40:45 BST 2019



Thiago Franco de Moraes pushed to branch master at Debian Med / invesalius


Commits:
9ef3db30 by Thiago Franco de Moraes at 2019-05-21T16:40:29Z
removing unused patches

- - - - -


3 changed files:

- − debian/patches/10_remove_py2_prints.patch
- − debian/patches/10_remove_python2_shebang.patch
- − debian/patches/10_sample_path.patch


Changes:

=====================================
debian/patches/10_remove_py2_prints.patch deleted
=====================================
@@ -1,83 +0,0 @@
-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/10_remove_python2_shebang.patch deleted
=====================================
@@ -1,107 +0,0 @@
-Author: Thiago Franco Moraes
-Last-Update: 2018-09-11 14:54:25 -0300
-Description: Remove python2 shebangs
-
-diff --git a/app.py b/app.py
-index 28dcbdd..2942f04 100644
---- a/app.py
-+++ b/app.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/python
-+#!/usr/bin/env python3
- #--------------------------------------------------------------------------
- # Software:     InVesalius - Software de Reconstrucao 3D de Imagens Medicas
- # Copyright:    (C) 2001  Centro de Pesquisas Renato Archer
-diff --git a/invesalius/data/measures.py b/invesalius/data/measures.py
-index 565cf0c..0567116 100644
---- a/invesalius/data/measures.py
-+++ b/invesalius/data/measures.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- 
- from six import with_metaclass
-diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py
-index 0b34ce0..a5d3cae 100755
---- a/invesalius/data/viewer_slice.py
-+++ b/invesalius/data/viewer_slice.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #--------------------------------------------------------------------------
- # Software:     InVesalius - Software de Reconstrucao 3D de Imagens Medicas
-diff --git a/invesalius/data/viewer_volume.py b/invesalius/data/viewer_volume.py
-index 3de5335..233e2b1 100755
---- a/invesalius/data/viewer_volume.py
-+++ b/invesalius/data/viewer_volume.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: utf-8 -*-
- 
- #--------------------------------------------------------------------------
-diff --git a/invesalius/gui/data_notebook.py b/invesalius/gui/data_notebook.py
-index ef119a9..e9772a1 100644
---- a/invesalius/gui/data_notebook.py
-+++ b/invesalius/gui/data_notebook.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- #--------------------------------------------------------------------------
- # Software:     InVesalius - Software de Reconstrucao 3D de Imagens Medicas
-diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py
-index c9793db..aa2dde1 100644
---- a/invesalius/gui/dialogs.py
-+++ b/invesalius/gui/dialogs.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- #--------------------------------------------------------------------------
- # Software:     InVesalius - Software de Reconstrucao 3D de Imagens Medicas
-diff --git a/invesalius/gui/dicom_preview_panel.py b/invesalius/gui/dicom_preview_panel.py
-index 5305eec..d9fa764 100644
---- a/invesalius/gui/dicom_preview_panel.py
-+++ b/invesalius/gui/dicom_preview_panel.py
-@@ -17,7 +17,6 @@
- #    detalhes.
- #--------------------------------------------------------------------------
- 
--#!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- 
- #TODO: To create a beautiful API
-diff --git a/invesalius/gui/widgets/gradient.py b/invesalius/gui/widgets/gradient.py
-index fe246ae..29d7551 100755
---- a/invesalius/gui/widgets/gradient.py
-+++ b/invesalius/gui/widgets/gradient.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- 
- #--------------------------------------------------------------------------
-diff --git a/invesalius/gui/widgets/slice_menu.py b/invesalius/gui/widgets/slice_menu.py
-index cdb66a4..737be02 100644
---- a/invesalius/gui/widgets/slice_menu.py
-+++ b/invesalius/gui/widgets/slice_menu.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- 
- #--------------------------------------------------------------------------
-diff --git a/invesalius/i18n.py b/invesalius/i18n.py
-index c47340a..7259026 100644
---- a/invesalius/i18n.py
-+++ b/invesalius/i18n.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python 
- # -*- coding: UTF-8 -*- 
-  
- #--------------------------------------------------------------------------
-diff --git a/invesalius/math_utils.py b/invesalius/math_utils.py
-index dfe9a86..eddbb82 100644
---- a/invesalius/math_utils.py
-+++ b/invesalius/math_utils.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- # -*- coding: utf-8 -*-
- 
- import math


=====================================
debian/patches/10_sample_path.patch deleted
=====================================
@@ -1,17 +0,0 @@
-Author: Thiago Franco Moraes
-Last-Update: 2016-10-06 14:28:25 +0000
-Description: Debian installation path of examples
-
-diff --git a/invesalius/constants.py b/invesalius/constants.py
-index 05cbc6b..d9e05ab 100644
---- a/invesalius/constants.py
-+++ b/invesalius/constants.py
-@@ -350,7 +350,7 @@ if hasattr(sys,"frozen") and (sys.frozen == "windows_exe"\
- 
- else:
-     ICON_DIR = os.path.abspath(os.path.join(FILE_PATH, u'..', u'icons'))
--    SAMPLE_DIR = os.path.abspath(os.path.join(FILE_PATH, u'..', u'samples'))
-+    SAMPLE_DIR = u"/usr/share/doc/invesalius-examples/examples/"
-     DOC_DIR = os.path.abspath(os.path.join(FILE_PATH, u'..', u'docs'))
- 
-     folder=RAYCASTING_PRESETS_DIRECTORY= os.path.abspath(os.path.join(u".",



View it on GitLab: https://salsa.debian.org/med-team/invesalius/commit/9ef3db3001b77a07e9c7387e58a211fc209ba752

-- 
View it on GitLab: https://salsa.debian.org/med-team/invesalius/commit/9ef3db3001b77a07e9c7387e58a211fc209ba752
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190521/c6039021/attachment-0001.html>


More information about the debian-med-commit mailing list