def setDefaults(configObj={}):
    """ Return a dictionary of the default parameters
        which also been updated with the user overrides.
    """
    paramDict = {'gain': 7, 'grow': 1, 'ctegrow': 0, 'rn': 5, 'snr':
        '4.0 3.0', 'scale': '0.5 0.4', 'backg': 0, 'expkey': 'exptime'}
    if len(configObj) > 0:
        for key in configObj:
            paramDict[key] = configObj[key]
    return paramDict
