The NumPy reference lists numpy.pow with the same signature as numpy.power, shown as the same ufunc, so the two names refer to the same function. If you only want to silence the invalid-value warning ...