def sine(value):
    'Filter to get sine of the value.'
    try:
        return math.sin(float(value))
    except (ValueError, TypeError):
        return value
Filter to get sine of the value.
def sine(value):
    
    try:
        return math.sin(float(value))
    except (ValueError, TypeError):
        return value