aiida_vasp.parsers.content_parsers.kpoints#
The KPOINTS parser interface.
Module Contents#
Classes#
The parser interface that enables parsing of |
Functions#
|
API#
- class aiida_vasp.parsers.content_parsers.kpoints.KpointsParser(*, handler=None, data=None, settings=None, options=None)[source]#
Bases:
aiida_vasp.parsers.content_parsers.base.BaseFileParserThe parser interface that enables parsing of
KPOINTScontent.The parser is triggered by using the
kpoints-kpointsquantity key. The quantity keykpointswill on the other hand parse the k-points using the XML parser.Initialization
- DEFAULT_SETTINGS = None#
- PARSABLE_QUANTITIES = None#
- _init_from_handler(handler)[source]#
Initialize using a file like handler.
- handlerobject
A file like object that provides the necessary content to be parsed.
- property kpoints#
Return kpoints that is ready to be consumed by the the AiiDA
KpointsData.AiiDA does not support the line mode used in VASP, so we give a warning that parsing this is not supported.
- aiida_kpointsdict
A dict that contain keys
comment,divisions,shifts,points,tetra,tetra_volume,modecentering,num_kpoints,weightsandcartesianwhich are compatible with consumption of the initialization of the AiiDA KpointsData.
- _content_data_to_content_parser()[source]#
Convert an AiiDA
KpointsDatato a content parser instance ofKpointsfromparsevasp.- content_parserobject
An instance of
Kpointsfromparsevasp.
- _get_kpointsdict_explicit(kpoints_data)[source]#
Turn Aiida
KpointDatainto a k-points dictionary with explicit generation of points.- kpoints_dataobject
An AiiDA
KpointsDataobject containing explicit k-point sets.
- kpoints_dictdict
A dictionary that can be used to initialize a
parsevaspKpointsinstance.
- static _get_kpointsdict_automatic(kpointsdata)[source]#
Turn Aiida
KpointDatainto a k-point dictionary with automatic generation of points.- kpoints_dataobject
An AiiDA
KpointsDataobject containing meshed k-point sets.
- kpoints_dictdict
A dictionary that can be used to initialize a
parsevaspKpointsinstance.
- aiida_vasp.parsers.content_parsers.kpoints.parsevasp_to_aiida(kpoints, logger)[source]#
parsevaspto AiiDA conversion.Generate an AiiDA data structure that can be consumed by
KpointsDataon initialization from theparsevaspinstance of theKpointsclass.- kpointsobject
An instance of the
Kpointsclass inparsevasp.
- kpoints_dictdict
A dictionary representation which are ready to be used when creating an AiiDA
KpointsDatainstance.