def _set_channel_gain(self, num):
if not <NUM_LIT:1> <= num <= <NUM_LIT:3>:<EOL><INDENT>raise AttributeError(<EOL>"""<STR_LIT>"""<EOL>)<EOL><DEDENT>for _ in range(num):<EOL><INDENT>logging.debug("<STR_LIT>")<EOL>start_counter = time.perf_counter()  <EOL>GPIO.output(self._pd_sck, True)  <EOL>GPIO.output(self._pd_sck, False)  <EOL>end_counter = time.perf_counter()  <EOL>time_elapsed = float(end_counter - start_counter)<EOL>if time_elapsed >= <NUM_LIT>:<EOL><INDENT>logging.warning(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(time_elapsed)<EOL>)<EOL>result = self.get_raw_data(times=<NUM_LIT:6>)  <EOL>if result is False:<EOL><INDENT>raise GenericHX711Exception("<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>return True<EOL>
Finish data transmission from HX711 by setting
next required gain and channel

Only called from the _read function.
:param num: how often so do the set (1...3)
:type num: int
:return True on success
:rtype bool