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

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

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

revision 1193 by jongui, Wed Jun 13 22:35:25 2007 UTC revision 1194 by jongui, Thu Jun 14 05:53:49 2007 UTC
# Line 63  class Movie: Line 63  class Movie:
63          image name (i.e. temp-0001) and image format (i.e. jpg).          image name (i.e. temp-0001) and image format (i.e. jpg).
64          """          """
65    
66            first_image_split = self.__first_image.split('.')
67          # Image format (i.e. jpg)          # Image format (i.e. jpg)
68          self.__image_format = self.__first_image.split('.')[1]          self.__image_format = first_image_split[len(first_image_split) - 1]
69          # First image name.          # First image name.
70          self.__first_image = self.__first_image.split('.')[0]          self.__first_image = \
71                    self.__first_image.rstrip('.' + self.__image_format)
72    
73            # Last image name.
74            self.__last_image = \
75                    self.__last_image.rstrip('.' + self.__image_format)
76    
77    
78    
79            #self.__image_format = self.__first_image.split('.')[1]
80            # First image name.
81            #self.__first_image = self.__first_image.split('.')[0]
82          # Last image name.          # Last image name.
83          self.__last_image = self.__last_image.split('.')[0]          #self.__last_image = self.__last_image.split('.')[0]
84    
85      def __retrieveFirstImageDetails(self):      def __retrieveFirstImageDetails(self):
86          """          """
# Line 120  class Movie: Line 132  class Movie:
132          elif(self.__image_format.endswith(ImageFormat.PNG)):          elif(self.__image_format.endswith(ImageFormat.PNG)):
133              self.__command = ImageFormat.PNG              self.__command = ImageFormat.PNG
134          elif(self.__image_format.endswith(ImageFormat.TIF)):          elif(self.__image_format.endswith(ImageFormat.TIF)):
135              self.__command = ImageFormat.TIF              self.__command = 'tiff'
136          else:          else:
137              raise IOError("ERROR: Invalid image format.")              raise IOError("ERROR: Invalid image format.")
138    

Legend:
Removed from v.1193  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.26