parameters: (self, convergence, variable, ref_variable=None)
return_statement: return sum(slopes) / len(slopes)
docstring: Get the average convergence slope.
  
          Parameters
          ----------
          convergence : str
              'spatial' or 'temporal'
          variable : str
              The name of the error variable to compute the convergence slope
          ref_variable : str
              If it is specified, the variable will be scaled to it
  
          Returns
          -------
          float 
              The convergence slope
docstring_summary: Get the average convergence slope.
docstring_tokens: Get the average convergence slope .
function: def Slope(self, convergence, variable, ref_variable=None):
          '''Get the average convergence slope.
  
          Parameters
          ----------
          convergence : str
              'spatial' or 'temporal'
          variable : str
              The name of the error variable to compute the convergence slope
          ref_variable : str
              If it is specified, the variable will be scaled to it
  
          Returns
          -------
          float 
              The convergence slope
          '''
          # Get the data
          error, increments = self._GetData(convergence, variable, ref_variable)
  
          # Compute the slope
          if len(error) > 0:
              slopes = []
              for i in range(len(increments)-1):
                  d_incr = increments[i] / increments[i+1]
                  d_err = error[i] / error[i+1]
                  slopes.append(d_err / d_incr)
          return sum(slopes) / len(slopes)
function_tokens: def Slope ( self , convergence , variable , ref_variable = None ) : # Get the data error , increments = self . _GetData ( convergence , variable , ref_variable ) # Compute the slope if len ( error ) > 0 : slopes = [ ] for i in range ( len ( increments ) - 1 ) : d_incr = increments [ i ] / increments [ i + 1 ] d_err = error [ i ] / error [ i + 1 ] slopes . append ( d_err / d_incr ) return sum ( slopes ) / len ( slopes )