@classmethod
def from_file(cls, file_name):
    """
        Loads the parameter setup from a file.

        """
    parameters = cls()
    with open(file_name) as param_file:
        for line in param_file:
            match = cls._match_line(line)
            if match:
                key, value = match
                parameters[key] = value
    return parameters
