@staticmethod
def build_output_parameters(parsed_stdout, parsed_xml):
    """Build the dictionary of output parameters from the raw parsed data.

        The output parameters are based on the union of raw parsed data from the XML and stdout output files.
        Currently, if both raw parsed data dictionaries contain the same key, the stdout version takes precedence, but
        this should not occur as the `parse_stdout` method should already have solved these conflicts.

        :param parsed_stdout: the raw parsed data dictionary from the stdout output file
        :param parsed_xml: the raw parsed data dictionary from the XML output file
        :return: the union of the two parsed raw and information about the parser
        """
    from aiida_quantumespresso.parsers import get_parser_info
    parsed_info = get_parser_info(parser_info_template=
        'aiida-quantumespresso parser pw.x v{}')
    for key in list(parsed_stdout.keys()):
        if key in list(parsed_xml.keys()):
            if parsed_stdout[key] != parsed_xml[key]:
                raise AssertionError(
                    '{} found in both dictionaries with different values: {} vs. {}'
                    .format(key, parsed_stdout[key], parsed_xml[key]))
    parameters = dict(list(parsed_xml.items()) + list(parsed_stdout.items()
        ) + list(parsed_info.items()))
    return parameters
