# Path: wildfind/harrier/comm.py
# class Comm(object):
#     BITS = [serial.FIVEBITS, serial.SIXBITS, serial.SEVENBITS,
#             serial.EIGHTBITS]
#     PARITIES = [serial.PARITY_NONE, serial.PARITY_EVEN, serial.PARITY_ODD,
#                 serial.PARITY_MARK, serial.PARITY_SPACE]
#     STOPS = [serial.STOPBITS_ONE, serial.STOPBITS_ONE_POINT_FIVE,
#              serial.STOPBITS_TWO]
# 
#     def __init__(self):
#         self.port = None
#         self.baud = 115200
#         self.bits = serial.EIGHTBITS
#         self.parity = serial.PARITY_NONE
#         self.stops = serial.STOPBITS_ONE
#         self.soft = False
# 
#     def get_ports(self):
#         return list_ports.comports()
# 
#     def get_bauds(self):
#         return serial.Serial.BAUDRATES


import ConfigParser
import sys
from wildfind.harrier.comm import Comm

            if args.gain is not None:
                self.recvGain = args.gain
            elif config.has_option('receiver', 'gain'):
                self.recvGain = config.getfloat('receiver', 'gain')

            if config.has_option('receiver', 'calibration'):
                self.recvCal = config.getfloat('receiver', 'calibration')

            self.gps.port = config.get('gps', 'port')

            if config.has_option('gps', 'baud'):
                bauds = self.gps.get_bauds()
                baud = config.getint('gps', 'baud')
                if baud in bauds:
                    self.gps.baud = baud
                else:
                    raise ValueError('Baud "{}" is not one of:\n  {}'.format(baud,
                                                                             bauds))

            if config.has_option('gps', 'bits'):
                bits = config.getint('gps', 'bits')
                if bits in Comm.BITS:
                    self.gps.bits = bits
                else:
                    raise ValueError('Bits "{}" is note one of:\n  {}'.format(bits,
                                                                              Comm.BITS))

            if config.has_option('gps', 'parity'):
                parity = config.get('gps', 'parity')

# Path: wildfind/harrier/comm.py
# class Comm(object):
#     BITS = [serial.FIVEBITS, serial.SIXBITS, serial.SEVENBITS,
#             serial.EIGHTBITS]
#     PARITIES = [serial.PARITY_NONE, serial.PARITY_EVEN, serial.PARITY_ODD,
#                 serial.PARITY_MARK, serial.PARITY_SPACE]
#     STOPS = [serial.STOPBITS_ONE, serial.STOPBITS_ONE_POINT_FIVE,
#              serial.STOPBITS_TWO]
# 
#     def __init__(self):
#         self.port = None
#         self.baud = 115200
#         self.bits = serial.EIGHTBITS
#         self.parity = serial.PARITY_NONE
#         self.stops = serial.STOPBITS_ONE
#         self.soft = False
# 
#     def get_ports(self):
#         return list_ports.comports()
# 
#     def get_bauds(self):
#         return serial.Serial.BAUDRATES


# Path: wildfind/harrier/settings.py
import ConfigParser
import sys
from wildfind.harrier.comm import Comm


            if args.gain is not None:
                self.recvGain = args.gain
            elif config.has_option('receiver', 'gain'):
                self.recvGain = config.getfloat('receiver', 'gain')

            if config.has_option('receiver', 'calibration'):
                self.recvCal = config.getfloat('receiver', 'calibration')

            self.gps.port = config.get('gps', 'port')

            if config.has_option('gps', 'baud'):
                bauds = self.gps.get_bauds()
                baud = config.getint('gps', 'baud')
                if baud in bauds:
                    self.gps.baud = baud
                else:
                    raise ValueError('Baud "{}" is not one of:\n  {}'.format(baud,
                                                                             bauds))

            if config.has_option('gps', 'bits'):
                bits = config.getint('gps', 'bits')
                if bits in Comm.BITS:
                    self.gps.bits = bits
                else:
                    raise ValueError('Bits "{}" is note one of:\n  {}'.format(bits,
                                                                              Comm.BITS))

            if config.has_option('gps', 'parity'):
                parity = config.get('gps', 'parity')

                if parity in Comm.PARITIES: