def __is_valid(loc_data):
    """Determine if this can be valid data (not all 0's)."""
    for key, [value, func] in SENSOR_TYPES.items():
        if (key != CONDITION and key != STATIONNAME and key != MEASURED):
            if (func is not None):
                sens_data = loc_data.get(value)
                if func(sens_data) != 0:
                    return True
def __is_valid ( loc_data ) : for key , [ value , func ] in SENSOR_TYPES . items ( ) : if ( key != CONDITION and key != STATIONNAME and key != MEASURED ) : if ( func is not None ) : sens_data = loc_data . get ( value ) if func ( sens_data ) != 0 : return True
Determine if this can be valid data (not all 0's).