original_docstring: 
          Convert a power (0.0 - 1.0) to the appropriate voltage based on channel settings.
          
docstring: Convert a power (0.0 - 1.0) to the appropriate voltage based on channel settings.
docstring_tokens: Convert a power ( 0 . 0 - 1 . 0 ) to the appropriate voltage based on channel settings .
code: def powerToVoltage(self, channel_id, power):
          """
          Convert a power (0.0 - 1.0) to the appropriate voltage based on channel settings.
          """
          minv = self.analog_settings[channel_id].min_voltage
          maxv = self.analog_settings[channel_id].max_voltage
          diff = maxv - minv
          return diff * (power - minv)
code_tokens: def powerToVoltage ( self , channel_id , power ) : minv = self . analog_settings [ channel_id ] . min_voltage maxv = self . analog_settings [ channel_id ] . max_voltage diff = maxv - minv return diff * ( power - minv )
short_docstring: Convert a power (0.0 - 1.0) to the appropriate voltage based on channel settings.
short_docstring_tokens: Convert a power ( 0 . 0 - 1 . 0 ) to the appropriate voltage based on channel settings .
comment: """
          Convert a power (0.0 - 1.0) to the appropriate voltage based on channel settings.
          """