def beacon(config):
    ret = []
    for diskusage in config:
        mount = diskusage.keys()[0]

        try:
            _current_usage = psutil.disk_usage(mount)
        except OSError:
            # Ensure a valid mount point
            log.error('{0} is not a valid mount point, skipping.'.format(mount))
            continue

        current_usage = _current_usage.percent
        monitor_usage = diskusage[mount]
        if '%' in monitor_usage:
            monitor_usage = re.sub('%', '', monitor_usage)
        monitor_usage = float(monitor_usage)
        if current_usage >= monitor_usage:
            ret.append({'diskusage': current_usage, 'mount': mount})
    return ret
Uses CSVFile and ExtractColumn to load a numeric array.
dataset/ETHPy150Open saltstack/salt/salt/beacons/diskusage.py/beacon--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/tabledata/read/read_csv.py/CSVTestCase.test_csv_numeric