Commit 553830f44ff07648d7dad7aa5eed1c1542b22905

Authored by tfmoraes
1 parent 54fac267

Trying to resolve the problem that is happening with multiprocessing in windows …

…related to the _(i18n)
invesalius/data/surface_process.py
... ... @@ -95,7 +95,7 @@ class SurfaceProcess(multiprocessing.Process):
95 95 del gauss
96 96 del a_mask
97 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 99 "AXIAL")
100 100 del a_image
101 101  
... ...
invesalius/gui/dialogs.py
... ... @@ -873,17 +873,17 @@ class NewSurfaceDialog(wx.Dialog):
873 873 keep_largest = self.check_box_largest.GetValue()
874 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 878 def ExportPicture(type_=""):
886 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 888 INDEX_TO_TYPE = {0: const.FILETYPE_BMP,
889 889 1: const.FILETYPE_JPG,
... ...
invesalius/project.py
... ... @@ -30,7 +30,6 @@ from wx.lib.pubsub import pub as Publisher
30 30 import vtk
31 31  
32 32 import constants as const
33   -import data.imagedata_utils as iu
34 33 import data.mask as msk
35 34 import data.polydata_utils as pu
36 35 import data.surface as srf
... ...