Package schrodinger :: Package application :: Package matsci :: Package espresso :: Module qeoutput :: Class KPoint
[hide private]
[frames] | no frames]

Class KPoint

object --+
         |
        KPoint

Class to hold information about a k-point.

Instance Methods [hide private]
 
__init__(self, tag, vecs=None)
Initialize KPoint object from ElementTree element.
list of three floats
getCoords(self, coords_str)
Return list of coordinates.
str
getCoordsStr(self, frac=False)
Get string representation of the coordinates.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
getKptFromCfg(kpt)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tag, vecs=None)
(Constructor)

 

Initialize KPoint object from ElementTree element.

Parameters:
  • vecs (numpy array (3x3)) - Cell vectors
  • tag (xml.etree.ElementTree.Element) - k_point tag
Overrides: object.__init__

getCoords(self, coords_str)

 

Return list of coordinates.

Parameters:
  • coords_str (str) - String representing K-point coordinates
Returns: list of three floats
K-point coordinates

getCoordsStr(self, frac=False)

 

Get string representation of the coordinates.

Parameters:
  • frac (bool) - If True, self.frac_coords are returned, otherwise self.cart_coords
Returns: str
String representation of the coordinates