from functools import wraps from math import log from numpy import logspace as numpy_logspace @wraps(numpy_logspace, assigned=('__annotations__', '__type_params__')) def logspace(start, stop, *args_rest, **kwargs): return numpy_logspace(log(start), log(stop), *args_rest, **kwargs)