aiida_quantumespresso.parsers.parse_raw.cp#

Module Contents#

Functions#

parse_cp_traj_stanzas(num_elements, splitlines, ...[, ...])

num_elements: Number of lines (with three elements) between lines with two only

parse_cp_text_output(data, xml_data)

data must be a list of strings, one for each lines, as returned by readlines().

parse_cp_xml_counter_output(data)

Parse xml file print_counter.xml data must be a single string, as returned by file.read() (notice the difference

parse_cp_counter_output(data)

Parse file print_counter data must be a single string, as returned by file.read() (notice the difference

parse_cp_raw_output(stdout[, output_xml, ...])

aiida_quantumespresso.parsers.parse_raw.cp.parse_cp_traj_stanzas(num_elements, splitlines, prepend_name, rescale=1.0)[source]#

num_elements: Number of lines (with three elements) between lines with two only elements (containing step number and time in ps). num_elements is 3 for cell, and the number of atoms for coordinates and positions.

splitlines: a list of lines of the file, already split in pieces using string.split

prepend_name: a string to be prepended to the name of keys returned in the return dictionary.

rescale: the values in each stanza are multiplied by this factor, for units conversion

aiida_quantumespresso.parsers.parse_raw.cp.parse_cp_text_output(data, xml_data)[source]#

data must be a list of strings, one for each lines, as returned by readlines().

On output, a dictionary with parsed values

aiida_quantumespresso.parsers.parse_raw.cp.parse_cp_xml_counter_output(data)[source]#

Parse xml file print_counter.xml data must be a single string, as returned by file.read() (notice the difference with parse_text_output!) On output, a dictionary with parsed values.

aiida_quantumespresso.parsers.parse_raw.cp.parse_cp_counter_output(data)[source]#

Parse file print_counter data must be a single string, as returned by file.read() (notice the difference with parse_text_output!) On output, a dictionary with parsed values.

aiida_quantumespresso.parsers.parse_raw.cp.parse_cp_raw_output(stdout, output_xml=None, xml_counter_file=None, print_counter_xml=True)[source]#