code: def scan_channel(self, channel, **kwargs):
          
  
          kal_run_line = fn.build_kal_scan_channel_string(self.kal_bin,
                                                          channel, kwargs)
          raw_output = subprocess.check_output(kal_run_line.split(' '),
                                               stderr=subprocess.STDOUT)
          kal_normalized = fn.parse_kal_channel(raw_output)
          return kal_normalized
docs: Run Kalibrate.
  
          Supported keyword arguments:
          gain    -- Gain in dB
          device  -- Index of device to be used
          error   -- Initial frequency error in ppm