parameters: (self)
return_statement: return tol
docstring: Get the tolerance for refining UB matrix with unit cell type.
          :return:
docstring_summary: Get the tolerance for refining UB matrix with unit cell type.
          :return:
docstring_tokens: Get the tolerance for refining UB matrix with unit cell type . : return :
function: def get_tolerance(self):
          """
          Get the tolerance for refining UB matrix with unit cell type.
          :return:
          """
          tol_str = str(self.ui.lineEdit_tolerance.text()).strip()
  
          if len(tol_str) == 0:
              # blank: return None
              tol = None
          else:
              tol = float(tol_str)
  
          return tol
function_tokens: def get_tolerance ( self ) : tol_str = str ( self . ui . lineEdit_tolerance . text ( ) ) . strip ( ) if len ( tol_str ) == 0 : # blank: return None tol = None else : tol = float ( tol_str ) return tol