def raw_to_dict(obj):
    result = {}
    for a in obj._fields:
        v = getattr(obj, a, None)
        if v is not None:
            result[a] = v
    return result
Convert an object holding raw analysis results into a dictionary. This
dataset/ETHPy150Open rubik/radon/radon/cli/tools.py/raw_to_dict