def _get_field(instance, field):
    
    value = getattr(instance, field)
    if hasattr(value, 'raw'):
        value = value.raw
    return value
Compute the Discrete Cosine Transform (DCT)
dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/listeners.py/_get_field--crossover with--dataset/ETHPy150Open jsawruk/pymir/pymir/Frame.py/Frame.dct