Updates the current calibration according to intenal values. For example, if the stimulus samplerate changes
        the calibration needs to be recalculated.

def updateCalibration(self):
        """Updates the current calibration according to intenal values. For example, if the stimulus samplerate changes
        the calibration needs to be recalculated."""
        if self.samplerate() != self._calibration_fs:
            self.setCalibration(self._attenuationVector, self._calFrequencies, self._calFrange)