It seems that you have added checks like assert isinstance(order, int) recently. This prevents using Numpy integers, such as np.int32 which the code was able to handle before.
I suggest using assert isinstance(order, numbers.Integral) instead, and casting to int afterwards if you truly need to use that type (probably not).
It seems that you have added checks like
assert isinstance(order, int)
recently. This prevents using Numpy integers, such asnp.int32
which the code was able to handle before.I suggest using
assert isinstance(order, numbers.Integral)
instead, and casting toint
afterwards if you truly need to use that type (probably not).