import yaml


def readConfigFile(filename):
  """
  Read in YAML config file, this is also a wrapper
  Inputs:
    - str filename: Filename of YAML file
  Outputs:
    - dict config:  Dictionary containing data
  """
  try:
    # Load entire config file into memory
    with open(filename) as config_file:
      config = yaml.load(config_file,Loader=yaml.FullLoader)
  except:
    print("Could not read in config file!")
    raise
  return config