def read_config_file(filename):
    """
    Read the parameters from the configuration file.

    :param filename: The location of the configuration file.
    :type filename: str or path

    :return: The parameters from the configuration file stored in a dictionary.
    :rtype: dict

    """
    config = dict()
    with open(filename, 'r') as f:
        args = f.readlines()
        for arg in args:
            if arg == '\n' or arg[0] == '#':
                continue
            else:
                key, value = arg.split("=")
                config[key.strip()] = value.strip()
    return config