parameters: (self)
return_statement: return self.usrp.get_power_reference(self.channels[0]) \
              + 20 * math.log10(self[AMPLITUDE_KEY])
docstring: Depending on gain type, return either a power level or the current gain
docstring_summary: Depending on gain type, return either a power level or the current gain
docstring_tokens: Depending on gain type return either a power level or the current gain
function: def get_gain_or_power(self):
          """
          Depending on gain type, return either a power level or the current gain
          """
          if self.gain_type == self.GAIN_TYPE_GAIN:
              return self.usrp.get_gain(self.channels[0])
          return self.usrp.get_power_reference(self.channels[0]) \
              + 20 * math.log10(self[AMPLITUDE_KEY])
function_tokens: def get_gain_or_power ( self ) : if self . gain_type == self . GAIN_TYPE_GAIN : return self . usrp . get_gain ( self . channels [ 0 ] ) return self . usrp . get_power_reference ( self . channels [ 0 ] ) + 20 * math . log10 ( self [ AMPLITUDE_KEY ] )