aiida_vasp.parsers.content_parsers.poscar#
The POSCAR/CONTCAR parser interface.
Module Contents#
Classes#
The parser interface that enables parsing of |
Functions#
|
|
Fetch the symbol entry in the elements dictionary in Aiida. |
API#
- class aiida_vasp.parsers.content_parsers.poscar.PoscarParser(*, precision=12, **kwargs)[source]#
Bases:
aiida_vasp.parsers.content_parsers.base.BaseFileParserThe parser interface that enables parsing of
POSCAR/CONTCARcontent.The parser is triggered by using the
poscar-structurequantity key. The quantity keystructurewill on the other hand parse the structure using the XML parser.- precisionint, optional
An integer specifying the number of digits for floating point numbers that will be written to
POSCAR/CONTCAR. Defaults to 12.
Initialization
Initialize an instance of this class.
- DEFAULT_SETTINGS = None#
- PARSABLE_QUANTITIES = None#
- _init_from_handler(handler)[source]#
Initialize a
parsevaspobject ofPoscarusing a file like handler.- handlerobject
A file like object that provides the necessary
POSCAR`/``CONTCAR`content to be parsed.
- _init_from_data(data)[source]#
Initialize using an AiiDA
StructureDatainstance.- dataobject
A valid AiiDA
StructureDataobject.
- property structure#
Return a structure that is ready to be consumed by the the AiiDA
StructureData.- aiida_structuredict
A dict that contain keys
comment,unitcellandsites, which are compatible with consumption of the initialization of the AiiDAStructureData.
- aiida_vasp.parsers.content_parsers.poscar.parsevasp_to_aiida(poscar)[source]#
parsevaspto AiiDA conversion.Generate an AiiDA structure that can be consumed by
StructureDataon initialization from theparsevaspinstance of thePoscarclass.- poscarobject
An instance of the
Poscarclass inparsevasp.
- poscar_dictdict
A dictionary representation which are ready to be used when creating an AiiDA
StructureDatainstance.