pyprocar.io.vasp.VaspXML#
- class pyprocar.io.vasp.VaspXML(filename='vasprun.xml', dos_interpolation_factor: float = 1.0)[source]#
A class to parse the vasprun xml file
- Parameters:
filename (str, optional) – The vasprun.xml filename, by default “vasprun.xml”
dos_interpolation_factor (float, optional) – The interpolation factor, by default None
- Raises:
ValueError – File not found
Methods
VaspXML.__init__
([filename, ...])VaspXML.conv
(ele, _type)This function converts the xml text to the type specified in the attrib of xml tree
VaspXML.get_general
(xml_tree, ret)This function will parse any element in calculatio other than the structures, scsteps
VaspXML.get_params
(xml_tree, dest)dest should be a dictionary This function is recurcive #check spelling
VaspXML.get_scstep
(xml_tree)This function extracts the self-consistent step information
VaspXML.get_set
(xml_tree, ret)This function will extract any element taged set recurcively
VaspXML.get_structure
(xml_tree)Returns a dictionary of the structure
VaspXML.get_varray
(xml_tree)Returns an array for each varray tag in vaspxml
VaspXML.parse_vasprun
(vasprun)Read and parse vasprun.xml.
VaspXML.text_to_bool
(text)boolians in vaspxml are stores as T or F in str format, this function coverts them to python boolians
Attributes
Parses the electronic bands
Parse the band projections
Returns a boolian representing if the the electronic self-consistent and ionic calculation converged
Returns a boolian representing if the last electronic self-consistent calculation converged
Returns a boolian representing if the ionic part of the calculation converged
The pyprocar.core.DensityOfStates Object
Returns the projected DOS as a multi-dimentional array, to be used in the pyprocar.core.dos object
The complete density (total,projected) of states as a python dictionary
Returns the total dos dict
Returns a list of energies in each electronic and ionic step [ionic step,electronic step, energy]
Returns the last calculated energy of the system
Returns the fermi energy
Returns the final Structure as a pychemia structure
Returns all the forces in ionic steps
Returns the incar parameters used in the calculation as pychemia.code.vasp.VaspIncar object
Returns the initial Structure as a pychemia structure
Always returns True, need to fix this according to reading the xml as if the calc is not finished we will have errors in xml parser
Returns a list of information in each electronic and ionic step of calculation
Returns the kpoints used in the calculation in form of a pychemia.core.KPoints object
Returns the dict of kpoints and weights used in the calculation in form of a pychemia.core.KPoints object
Returns the last calculated energy of the system
Returns the information about pseudopotentials(POTCAR) used in this calculation
Returns the species in POSCAR
crystal structure of the last step
Returns a list of pychemia.core.Structure representing all the ionic step structures
Returns all of the parameters vasp has used in this calculation