parameters: (self)
return_statement: return quantity
docstring: Compute conversion ratio associated with this definition
docstring_summary: Compute conversion ratio associated with this definition
docstring_tokens: Compute conversion ratio associated with this definition
function: def getConversionRatio(self):
      """
        Compute conversion ratio associated with this definition
      """
      quantity = self.getQuantity()
  
      if quantity != 0 and self.isInverse():
        quantity = 1.0/quantity
  
      return quantity
function_tokens: def getConversionRatio ( self ) : quantity = self . getQuantity ( ) if quantity != 0 and self . isInverse ( ) : quantity = 1.0 / quantity return quantity