def get_sample_rate(matData):
    """Returns the sample rate for the data."""
    if 'ActualRate' in matData.keys():
        sampleRate = matData['ActualRate']
    else:
        sampleRate = matData['sampleRate']
    return sampleRate
