コード例 #1
0
ファイル: isofill.py プロジェクト: NESII/uvcdat
 def _setfillareaindices(self, value):
     if value is not None:
         value = VCS_validation_functions.checkIndicesList(
             self,
             'fillareaindices',
             value)
     self._fillareaindices = value
コード例 #2
0
ファイル: boxfill.py プロジェクト: govtmirror/uvcdat
 def _setfillareaindices(self, value):
     if value is not None:
         value = VCS_validation_functions.checkIndicesList(
             self,
             'fillareaindices',
             value)
     self._fillareaindices = value
コード例 #3
0
ファイル: fillarea.py プロジェクト: l5d1l5/uvcdat
 def _setfillareaindices(self,value):
      if not isinstance(value,(list,tuple)) and value is not None:
           value=[value,]
      if value is not None:
           value = VCS_validation_functions.checkIndicesList(self,'index',value)
      if value in [ (), []]:
        raise ValueError, "You cannot set fillarea index to an empty list"
      self._index = value
コード例 #4
0
ファイル: fillarea.py プロジェクト: ptbremer/uvcdat-devel
 def _setfillareaindices(self, value):
     if not isinstance(value, (list, tuple)) and value is not None:
         value = [
             value,
         ]
     if value is not None:
         value = VCS_validation_functions.checkIndicesList(
             self, 'index', value)
     setmember(self, 'index', value)
コード例 #5
0
ファイル: fillarea.py プロジェクト: LePtitLilou/vcsmp
 def _setfillareaindices(self,value):
      if not isinstance(value,(list,tuple)) and value is not None:
           value=[value,]
      if value is not None:
           value = VCS_validation_functions.checkIndicesList(self,'index',value)
      setmember(self,'index',value)