[med-svn] [Git][med-team/invesalius][master] new patch and fixed email and username
Thiago Franco de Moraes (@tfmoraes-guest)
gitlab at salsa.debian.org
Wed Jul 20 01:06:38 BST 2022
Thiago Franco de Moraes pushed to branch master at Debian Med / invesalius
Commits:
eb442733 by Thiago Franco de Moraes at 2022-07-19T21:06:26-03:00
new patch and fixed email and username
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/invesalius.install
- + debian/patches/11_scrollbar_int.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -3,7 +3,7 @@ invesalius (3.1.99998-1) UNRELEASED; urgency=medium
* New upstream version
* Drop transition for old debug package migration.
- -- Thiago <thiago at butuntu> Tue, 19 Jul 2022 19:31:51 -0300
+ -- Thiago Franco de Moraes <tfmoraes at cti.gov.br> Tue, 19 Jul 2022 19:31:51 -0300
invesalius (3.1.99995-1) unstable; urgency=medium
=====================================
debian/control
=====================================
@@ -35,6 +35,7 @@ Depends: ${python3:Depends},
python3-keras,
python3-theano,
python3-pubsub,
+ python3-torch,
invesalius-bin
Description: 3D medical imaging reconstruction software
InVesalius generates 3D medical imaging reconstructions based on a sequence of
=====================================
debian/invesalius.install
=====================================
@@ -28,8 +28,11 @@ invesalius/gui/widgets/*.py /usr/share/invesalius/invesalius/gui/widgets/
invesalius/data/*.py /usr/share/invesalius/invesalius/data/
invesalius/segmentation/*.py /usr/share/invesalius/invesalius/segmentation/
invesalius/segmentation/brain/*.py /usr/share/invesalius/invesalius/segmentation/brain/
+invesalius/pubsub/*.py /usr/share/invesalius/invesalius/pubsub/
+invesalius/navigation/*.py /usr/share/invesalius/invesalius/navigation/
ai/brain_mri_t1/* /usr/share/invesalius/ai/brain_mri_t1/
+navigation/* /usr/share/invesalius/navigation/
debian/invesalius.desktop /usr/share/applications
=====================================
debian/patches/11_scrollbar_int.patch
=====================================
@@ -0,0 +1,72 @@
+diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py
+index 51c9235..841731f 100644
+--- a/invesalius/data/viewer_slice.py
++++ b/invesalius/data/viewer_slice.py
+@@ -1316,7 +1316,7 @@ class Viewer(wx.Panel):
+ buffer_.discard_buffer()
+
+ def set_scroll_position(self, position):
+- self.scroll.SetThumbPosition(position)
++ self.scroll.SetThumbPosition(int(position))
+ self.OnScrollBar()
+
+ def UpdateSlice3D(self, pos):
+@@ -1416,7 +1416,7 @@ class Viewer(wx.Panel):
+ if self._flush_buffer:
+ self.slice_.apply_slice_buffer_to_mask(self.orientation)
+ pos = pos - 1
+- self.scroll.SetThumbPosition(pos)
++ self.scroll.SetThumbPosition(int(pos))
+ self.OnScrollBar()
+
+ def OnScrollBackward(self, evt=None, obj=None):
+@@ -1429,7 +1429,7 @@ class Viewer(wx.Panel):
+ if self._flush_buffer:
+ self.slice_.apply_slice_buffer_to_mask(self.orientation)
+ pos = pos + 1
+- self.scroll.SetThumbPosition(pos)
++ self.scroll.SetThumbPosition(int(pos))
+ self.OnScrollBar()
+
+ def OnSetMIPSize(self, number_slices):
+@@ -1505,7 +1505,7 @@ class Viewer(wx.Panel):
+
+ def ChangeSliceNumber(self, index):
+ #self.set_slice_number(index)
+- self.scroll.SetThumbPosition(index)
++ self.scroll.SetThumbPosition(int(index))
+ pos = self.scroll.GetThumbPosition()
+ self.set_slice_number(pos)
+ self.interactor.Render()
+diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py
+index 4ecb2e3..9551da2 100644
+--- a/invesalius/gui/dialogs.py
++++ b/invesalius/gui/dialogs.py
+@@ -221,7 +221,7 @@ class ProgressDialog(object):
+ def Update(self, value, message):
+ if(int(value) != self.maximum):
+ try:
+- return self.dlg.Update(value,message)
++ return self.dlg.Update(int(value),message)
+ #TODO:
+ #Exception in the Windows XP 64 Bits with wxPython 2.8.10
+ except(wx._core.PyAssertionError):
+diff --git a/invesalius/gui/dicom_preview_panel.py b/invesalius/gui/dicom_preview_panel.py
+index ce47bdd..8867584 100644
+--- a/invesalius/gui/dicom_preview_panel.py
++++ b/invesalius/gui/dicom_preview_panel.py
+@@ -429,7 +429,7 @@ class DicomPreviewSeries(wx.Panel):
+ self.files.append(info)
+ n+=1
+
+- scroll_range = len(self.files)/NCOLS
++ scroll_range = len(self.files)//NCOLS
+ if scroll_range * NCOLS < len(self.files):
+ scroll_range +=1
+ self.scroll.SetScrollbar(0, NROWS, scroll_range, NCOLS)
+@@ -941,3 +941,5 @@ class SingleImagePreview(wx.Panel):
+
+ # Setting slider position
+ self.slider.SetValue(index)
++
++
=====================================
debian/patches/series
=====================================
@@ -1 +1 @@
-11_brainseg_shebang.patch
+11_scrollbar_int.patch
View it on GitLab: https://salsa.debian.org/med-team/invesalius/-/commit/eb4427330ff0485af97bc7be46e95f1d45b2afaa
--
View it on GitLab: https://salsa.debian.org/med-team/invesalius/-/commit/eb4427330ff0485af97bc7be46e95f1d45b2afaa
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/20220720/c529dc1d/attachment-0001.htm>
More information about the debian-med-commit
mailing list