Package diffpy :: Package Structure :: Package Parsers :: Module P_bratoms :: Class P_bratoms
[hide private]
[frames] | no frames]

Class P_bratoms

source code

structureparser.StructureParser --+
                                  |
                                 P_bratoms

Parser for Bruce Ravel's Atoms structure format.
    



Instance Methods [hide private]
 
__init__(self) source code
 
parseLines(self, lines)
Parse list of lines in atoms format.
source code
 
toLines(self, stru)
Convert Structure stru to a list of lines in PDFfit format.
source code

Inherited from structureparser.StructureParser: parse, parseFile, tostring

Class Variables [hide private]
  plist = ['a', 'b', 'c', 'alpha', 'beta', 'gamma']
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: structureparser.StructureParser.__init__

parseLines(self, lines)

source code 
Parse list of lines in atoms format.

Return Structure object or raise StructureFormatError.

Overrides: structureparser.StructureParser.parseLines

toLines(self, stru)

source code 
Convert Structure stru to a list of lines in PDFfit format.

Return list of strings.

Overrides: structureparser.StructureParser.toLines