def set_gain(self, gain_db):
		"""Set gain of tuner.  Can be the string 'AUTO' for automatic gain
		or a numeric value in decibels for fixed gain.
		"""
		if gain_db == 'AUTO':
			self.sdr.set_manual_gain_enabled(False)
			self.auto_gain = True
			self._clear_intensity()
		else:
			try:
				self.sdr.set_gain(float(gain_db))
				self.auto_gain = False
				self._clear_intensity()
			except __HOLE__:
				# Error setting value, ignore it for now but in the future consider
				# adding an error message dialog.
				pass
dataset/ETHPy150Open adafruit/FreqShow/model.py/FreqShowModel.set_gain