INNER CODE UNIT · Python

set_property

firmai/deltapy · deltapy/extract.py:19

def set_property(key, value):
    """
    This method returns a decorator that sets the property key of the function to value
    """
    def decorate_func(func):
        setattr(func, key, value)
        if func.__doc__ and key == "fctype":
            func.__doc__ = func.__doc__ + "\n\n    *This function is of type: " + value + "*\n"
        return func
    return decorate_func


#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


#-> In Package
def abs_energy(x):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…