def __call__(self, *args):
    '\n        Evaluate the constant function.  The first input must exist and should be an array.\n        Returns an array of identical shape to args[0] (if it exists).\n        '
    if (len(args) > 0):
        if _isscalar(args[0]):
            return self.value
        else:
            shape = args[0].shape
            return (self.value * np.ones(shape))
    else:
        return self.value
Evaluate the constant function.  The first input must exist and should be an array.
Returns an array of identical shape to args[0] (if it exists).
def __call__(self, *args):
    '\n        Evaluate the constant function.  The first input must exist and should be an array.\n        Returns an array of identical shape to args[0] (if it exists).\n        '
    if (len(args) > 0):
        if _isscalar(args[0]):
            return self.value
        else:
            shape = args[0].shape
            return (self.value * np.ones(shape))
    else:
        return self.value