def METHOD_NAME(self, channel=1):
    """
    get current of channel ch
    """
    val = float(self.IVVI.get_dac(self.dacs[channel - 1]) + 0.5 * (
                self.range_limits[channel - 1][0] + self.range_limits[channel - 1][-1])) / 1000  # dac value in mV
    # print(val)
    try:
        return val * np.power(10., dac_val[self.c_ranges[channel - 1]])
    except IndexError as detail:
        logging.error('Electronics might be disconnected.')
        raise detail
    except Exception as detail:
        logging.error(detail)