def get_mean_threshold_from_calibration(gdac, mean_threshold_calibration):
interpolation = interp1d(mean_threshold_calibration['<STR_LIT>'], mean_threshold_calibration['<STR_LIT>'], kind='<STR_LIT>', bounds_error=True)<EOL>return interpolation(gdac)<EOL>
Calculates the mean threshold from the threshold calibration at the given gdac settings. If the given gdac value was not used during caluibration
    the value is determined by interpolation.

    Parameters
    ----------
    gdacs : array like
        The GDAC settings where the threshold should be determined from the calibration
    mean_threshold_calibration : pytable
        The table created during the calibration scan.

    Returns
    -------
    numpy.array, shape=(len(gdac), )
        The mean threshold values at each value in gdacs.