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

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

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

revision 1198 by jongui, Mon Jun 18 02:08:34 2007 UTC revision 1199 by jongui, Wed Jun 20 05:01:30 2007 UTC
# Line 87  class DataCollector: Line 87  class DataCollector:
87          self.__count += 1          self.__count += 1
88    
89          if(self.__source == Source.XML):          if(self.__source == Source.XML):
90              # Check whether the specified file exists, otherwise exit.              # Check whether the specified file exists, otherwise an error is
91                # raised.
92              if not(os.access(file_name, os.F_OK)):              if not(os.access(file_name, os.F_OK)):
93                  raise IOError("\nERROR: '%s' file does NOT exists.\n" % \                  raise IOError("\nERROR: '%s' file does NOT exists.\n" % \
94                          file_name)                          file_name)
# Line 119  class DataCollector: Line 120  class DataCollector:
120              # will always be displayed. The reason Modified is used is              # will always be displayed. The reason Modified is used is
121              # because the same temporary file name is always used              # because the same temporary file name is always used
122              # (previous file is overwritten). Modified MUST NOT be used in              # (previous file is overwritten). Modified MUST NOT be used in
123              # setFileName, it can cause incorrect output such as map.              # setFileName, as it can cause incorrect output such as map.
124              self.__vtk_xml_reader.Modified()              self.__vtk_xml_reader.Modified()
125    
126              # Update must be called after Modified. If Update is called before              # Update must be called after Modified. If Update is called before
# Line 150  class DataCollector: Line 151  class DataCollector:
151          """          """
152    
153          # Check whether the specified scalar is available in either point          # Check whether the specified scalar is available in either point
154          # or cell data. If not available, error is raised.          # or cell data. If not available, an error is raised.
155    
156          # NOTE: This check is similar to the check used in _getScalarRange          # NOTE: This check is similar to the check used in _getScalarRange
157          # but this is used only when a scalar attribute has been specified.          # but this is used only when a scalar attribute has been specified.
# Line 283  class DataCollector: Line 284  class DataCollector:
284                  self.__get_attribute_list(                  self.__get_attribute_list(
285                  self._getDataCollectorOutput().GetPointData())                  self._getDataCollectorOutput().GetPointData())
286    
287          # Get all the available cell data attribute into another list.            # Get all the available cell data attributes into another list.
288          self.__cell_attribute = \          self.__cell_attribute = \
289                  self.__get_attribute_list(                  self.__get_attribute_list(
290                  self._getDataCollectorOutput().GetCellData())                  self._getDataCollectorOutput().GetCellData())
# Line 297  class DataCollector: Line 298  class DataCollector:
298          """          """
299    
300          # Check whether any scalar is available in either point or cell data.          # Check whether any scalar is available in either point or cell data.
301          # If not available, program exits.          # If not available, an error is raised.
302    
303          # NOTE: This check is similar to the check used in _setActiveScalar          # NOTE: This check is similar to the check used in _setActiveScalar
304          # but this is used only when no scalar attribute has been specified.          # but this is used only when no scalar attribute has been specified.
# Line 319  class DataCollector: Line 320  class DataCollector:
320          """          """
321                    
322          # Check whether any vector is available in either point or cell data.          # Check whether any vector is available in either point or cell data.
323          # If not available, program exits.          # If not available, an error is raised.
324    
325          # NOTE: This check is similar to the check used in _setActiveVector          # NOTE: This check is similar to the check used in _setActiveVector
326          # but this is used only when no vector attribute has been specified.          # but this is used only when no vector attribute has been specified.
# Line 351  class DataCollector: Line 352  class DataCollector:
352          """          """
353    
354          # Check whether any tensor is available in either point or cell data.          # Check whether any tensor is available in either point or cell data.
355          # If not available, program exits.          # If not available, an error is raised.
356    
357          # NOTE: This check is similar to the check used in _setActiveTensor          # NOTE: This check is similar to the check used in _setActiveTensor
358          # but this is used only when no tensor attribute has been specified.          # but this is used only when no tensor attribute has been specified.

Legend:
Removed from v.1198  
changed lines
  Added in v.1199

  ViewVC Help
Powered by ViewVC 1.1.26