'Read sampling rate. Returns None on error.'

def getSampleRate(self):

    version = self['version'].value
    rate = self['sampling_rate'].value
    try:
        return self.SAMPLING_RATES[version][rate]
    except (KeyError, IndexError):
        return None
