Пример #1
0
 def setBounds(self, bounds):
     if bounds is not None:
         if len(bounds.shape)!=2:
             raise CDMSError, 'Bounds must have rank=2'
         if bounds.shape[0:1]!=self.shape:
             raise CDMSError, 'Bounds shape %s is inconsistent with axis shape %s'%(`bounds.shape`,`self.shape`)
     AbstractCoordinateAxis.setBounds(self, bounds)
Пример #2
0
 def setBounds(self, bounds):
     if bounds is not None:
         if len(bounds.shape) != 2:
             raise CDMSError, 'Bounds must have rank=2'
         if bounds.shape[0:1] != self.shape:
             raise CDMSError, 'Bounds shape %s is inconsistent with axis shape %s' % (
                 ` bounds.shape `, ` self.shape `)
     AbstractCoordinateAxis.setBounds(self, bounds)
Пример #3
0
 def __init__ (self, parent=None, variableNode=None, bounds=None):
     AbstractCoordinateAxis.__init__(self, parent, variableNode, bounds=bounds)
Пример #4
0
 def __init__(self, parent=None, variableNode=None, bounds=None):
     AbstractCoordinateAxis.__init__(self,
                                     parent,
                                     variableNode,
                                     bounds=bounds)