Corrected return type of scale to be numpy.array.