code: def check_config(config, data):
      '''Checks that the config file contains all required parameters
  
      :param dict config:
          Configuration file
  
      :returns:
          Configuration file with all correct parameters
      '''
      if 'tolerance' not in config.keys() or not config['tolerance']:
          config['tolerance'] = 1E-5
  
      if not config.get('maximum_iterations', None):
          config['maximum_iterations'] = 1000
  
      mmin_obs = np.min(data['magnitude'])
      if config.get('input_mmin', 0) < mmin_obs:
          config['input_mmin'] = mmin_obs
  
      if fabs(config['b-value']) < 1E-7:
          config['b-value'] = 1E-7
  
      return confif check_config(config, data):
      '''Checks that the config file contains all required parameters
  
      :param dict config:
          Configuration file
  
      :returns:
          Configuration file with all correct parameters
      '''
      if 'tolerance' not in config.keys() or not config['tolerance']:
          config['tolerance'] = 1E-5
  
      if not config.get('maximum_iterations', None):
          config['maximum_iterations'] = 1000
  
      mmin_obs = np.min(data['magnitude'])
      if config.get('input_mmin', 0) < mmin_obs:
          config['input_mmin'] = mmin_obs
  
      if fabs(config['b-value']) < 1E-7:
          config['b-value'] = 1E-7
  
      return config
docs: Checks that the config file contains all required parameters
  
      :param dict config:
          Configuration file
  
      :returns:
          Configuration file with all correct parameters