/[escript]/trunk/pyvisi/py_src/imagereader.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/imagereader.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1809 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 2313 by gross, Tue Mar 17 03:41:17 2009 UTC
# Line 32  __author__="John Ngui, john.ngui@uq.edu. Line 32  __author__="John Ngui, john.ngui@uq.edu.
32    
33  import vtk  import vtk
34  from constant import ImageFormat  from constant import ImageFormat
35    from esys.escript import getMPISizeWorld
36    
37  class ImageReader:  class ImageReader:
38      """      """
# Line 46  class ImageReader: Line 47  class ImageReader:
47          @type format:  L{ImageFormat <constant.ImageFormat>} constant          @type format:  L{ImageFormat <constant.ImageFormat>} constant
48          @param format: Format of the image          @param format: Format of the image
49          """          """
50                    if getMPISizeWorld()>1:
51                        raise ValueError,"pyvisi.ImageReader is not running on more than one processor."
52          self.__format = format          self.__format = format
53          self.__vtk_image_reader = self.__getImageReader()          self.__vtk_image_reader = self.__getImageReader()
54    

Legend:
Removed from v.1809  
changed lines
  Added in v.2313

  ViewVC Help
Powered by ViewVC 1.1.26