xml_SQw

XML reader for SQw data

class MDMC.readers.observables.xml_SQw.XML_SQw(file_name: str)[source]

An XML reader for SQw data

static dict_from_element(element: TextIO) dict[source]

Creates a dictionary from an XML element

Parameters:

element (Element) – An XML element. Must have items method, which must return a list of 2 element tuples.

Returns:

For each tuple from the xml Element, The first index is the key and the second element is the value.

Return type:

dict

parse(**settings: dict) None[source]

Parses the xml file

Currently only parses SQw files

E is the energy transfer (in meV) Q is wavevector transfer (in Ang^-1)