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)
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)
def __init__ (self, parent=None, variableNode=None, bounds=None): AbstractCoordinateAxis.__init__(self, parent, variableNode, bounds=bounds)
def __init__(self, parent=None, variableNode=None, bounds=None): AbstractCoordinateAxis.__init__(self, parent, variableNode, bounds=bounds)