GraceFile

class ase2sprkkr.result_files.grace.GraceFile(graphs=<factory>, settings=<factory>, commands=<factory>)[source]

Parsed Grace file; no matplotlib import or dependency.

Use GraceFile.from_file(path) or GraceFile.from_string(text). graphs[1].datasets[0].data retrieves the data for G1.S0. datasets is a mapping from G*.S* identifiers to datasets.

Class hierarchy

Inheritance diagram of ase2sprkkr.result_files.grace.GraceFile


Constructor

Parameters:
__init__(graphs=<factory>, settings=<factory>, commands=<factory>)
Parameters:
Return type:

None

graphs: Dict[int, ase2sprkkr.result_files.grace.GraceGraph]
settings: Dict[str, str]
commands: List[str]
property datasets
property data

Mapping G*.S* to the underlying NumPy arrays.

plot(**kwargs)[source]

Render the Grace project with ASE2SPRKKR’s plotting helpers.

classmethod from_file(path)[source]
classmethod from_string(source)[source]
classmethod _parse(stream)[source]