def SpiceUDSTEP(f):
    """
    Decorator for wrapping python functions in spice udstep callback type
    :param f: function to be wrapped
    :type f: builtins.function
    :return: wrapped udstep function
    :rtype: builtins.function
    """

    @functools.wraps(f)
    def wrapping_udstep(x, value):
        result = f(x)
        value[0] = c_double(result)

    return UDSTEP(wrapping_udstep)
Decorator for wrapping python functions in spice udstep callback type
    :param f: function to be wrapped
    :type f: builtins.function
    :return: wrapped udstep function
    :rtype: builtins.function