def METHOD_NAME(self, data=None):
    """
    Computes slit lenght from given 1D data
    """
    if data is None:
        self.clearResults()
        msg = "ERROR: Data hasn't been loaded correctly"
        logging.error(msg)
        return
    if data.__class__.__name__ == 'Data2D':
        self.clearResults()
        msg = "Slit Length cannot be computed for 2D Data"
        logging.error(msg)
        return
    #compute the slit size
    try:
        xdata = data.x
        ydata = data.y
        if xdata == [] or xdata is None or ydata == [] or ydata is None:
            msg = "The current data is empty please check x and y"
            logging.error(msg)
            return
        slit_length_calculator = SlitlengthCalculator()
        slit_length_calculator.set_data(x=xdata, y=ydata)
        slit_length = slit_length_calculator.calculate_slit_length()
    except:
        self.clearResults()
        msg = "Slit Size Calculator: %s" % (sys.exc_info()[1])
        logging.error(msg)
        return
    slit_length_str = "{:.5f}".format(slit_length)
    self.slit_length_out.setText(slit_length_str)
    #Display unit, which most likely needs to be 1/Ang but needs to be confirmed
    self.unit_out.setText("[Unknown]")