예제 #1
0
def xml_parser_magmom(request, tmpdir_factory):
    """Load XML file. Test only terminated XML.

    """
    testdir = os.path.dirname(__file__)
    xmlfile = testdir + "/magmom.xml"
    xml = vasprun.Xml(xmlfile, event = True)
    return xml
예제 #2
0
def xml_parser_specific(request, tmpdir_factory):
    """Load XML file. Test both terminated and truncated XML.

    """
    testdir = os.path.dirname(__file__)
    xmlfile = testdir + "/specific.xml"
    xml = vasprun.Xml(xmlfile, event = True)
    return xml
예제 #3
0
def xml_parser_specific(request, tmpdir_factory):
    """Load XML file. Test both terminated and truncated XML.

    """
    testdir = os.path.dirname(__file__)
    xmlfile = testdir + "/specific.xml"
    tmpfile = str(tmpdir_factory.mktemp('data').join('basic_trunc.xml'))
    xml_truncate(request.param, xmlfile, tmpfile)
    xml = vasprun.Xml(tmpfile, event=False)
    return xml