def get_pixel_thresholds_from_calibration_array(gdacs, calibration_gdacs, threshold_calibration_array, bounds_error=True):
if len(calibration_gdacs) != threshold_calibration_array.shape[<NUM_LIT:2>]:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>interpolation = interp1d(x=calibration_gdacs, y=threshold_calibration_array, kind='<STR_LIT>', bounds_error=bounds_error)<EOL>return interpolation(gdacs)<EOL>
Calculates the threshold for all pixels in threshold_calibration_array at the given GDAC settings via linear interpolation. The GDAC settings used during calibration have to be given.

    Parameters
    ----------
    gdacs : array like
        The GDAC settings where the threshold should be determined from the calibration
    calibration_gdacs : array like
        GDAC settings used during calibration, needed to translate the index of the calibration array to a value.
    threshold_calibration_array : numpy.array, shape=(80,336,# of GDACs during calibration)
        The calibration array

    Returns
    -------
    numpy.array, shape=(80,336,# gdacs given)
        The threshold values for each pixel at gdacs.