Commit 553830f44ff07648d7dad7aa5eed1c1542b22905
1 parent
54fac267
Exists in
master
and in
67 other branches
Trying to resolve the problem that is happening with multiprocessing in windows …
…related to the _(i18n)
Showing
3 changed files
with
8 additions
and
9 deletions
Show diff stats
invesalius/data/surface_process.py
| @@ -95,7 +95,7 @@ class SurfaceProcess(multiprocessing.Process): | @@ -95,7 +95,7 @@ class SurfaceProcess(multiprocessing.Process): | ||
| 95 | del gauss | 95 | del gauss |
| 96 | del a_mask | 96 | del a_mask |
| 97 | else: | 97 | else: |
| 98 | - image = converters.to_vtk(a_image, self.spacing, roi.start, | 98 | + image = converters.to_vtk(a_image, self.spacing, roi.start, |
| 99 | "AXIAL") | 99 | "AXIAL") |
| 100 | del a_image | 100 | del a_image |
| 101 | 101 |
invesalius/gui/dialogs.py
| @@ -873,17 +873,17 @@ class NewSurfaceDialog(wx.Dialog): | @@ -873,17 +873,17 @@ class NewSurfaceDialog(wx.Dialog): | ||
| 873 | keep_largest = self.check_box_largest.GetValue() | 873 | keep_largest = self.check_box_largest.GetValue() |
| 874 | return (mask_index, surface_name, quality, fill_holes, keep_largest) | 874 | return (mask_index, surface_name, quality, fill_holes, keep_largest) |
| 875 | 875 | ||
| 876 | -INDEX_TO_EXTENSION = {0: "bmp", 1: "jpg", 2: "png", 3: "ps", 4:"povray", 5:"tiff"} | ||
| 877 | -WILDCARD_SAVE_PICTURE = _("BMP image")+" (*.bmp)|*.bmp|"+\ | ||
| 878 | - _("JPG image")+" (*.jpg)|*.jpg|"+\ | ||
| 879 | - _("PNG image")+" (*.png)|*.png|"+\ | ||
| 880 | - _("PostScript document")+" (*.ps)|*.ps|"+\ | ||
| 881 | - _("POV-Ray file")+" (*.pov)|*.pov|"+\ | ||
| 882 | - _("TIFF image")+" (*.tif)|*.tif" | ||
| 883 | 876 | ||
| 884 | 877 | ||
| 885 | def ExportPicture(type_=""): | 878 | def ExportPicture(type_=""): |
| 886 | import constants as const | 879 | import constants as const |
| 880 | + INDEX_TO_EXTENSION = {0: "bmp", 1: "jpg", 2: "png", 3: "ps", 4:"povray", 5:"tiff"} | ||
| 881 | + WILDCARD_SAVE_PICTURE = _("BMP image")+" (*.bmp)|*.bmp|"+\ | ||
| 882 | + _("JPG image")+" (*.jpg)|*.jpg|"+\ | ||
| 883 | + _("PNG image")+" (*.png)|*.png|"+\ | ||
| 884 | + _("PostScript document")+" (*.ps)|*.ps|"+\ | ||
| 885 | + _("POV-Ray file")+" (*.pov)|*.pov|"+\ | ||
| 886 | + _("TIFF image")+" (*.tif)|*.tif" | ||
| 887 | 887 | ||
| 888 | INDEX_TO_TYPE = {0: const.FILETYPE_BMP, | 888 | INDEX_TO_TYPE = {0: const.FILETYPE_BMP, |
| 889 | 1: const.FILETYPE_JPG, | 889 | 1: const.FILETYPE_JPG, |
invesalius/project.py
| @@ -30,7 +30,6 @@ from wx.lib.pubsub import pub as Publisher | @@ -30,7 +30,6 @@ from wx.lib.pubsub import pub as Publisher | ||
| 30 | import vtk | 30 | import vtk |
| 31 | 31 | ||
| 32 | import constants as const | 32 | import constants as const |
| 33 | -import data.imagedata_utils as iu | ||
| 34 | import data.mask as msk | 33 | import data.mask as msk |
| 35 | import data.polydata_utils as pu | 34 | import data.polydata_utils as pu |
| 36 | import data.surface as srf | 35 | import data.surface as srf |