aiida_vasp.parsers.content_parsers.potcar#
POTCAR parser.
Module Contents#
Classes#
A lightweight interface that provides access to POTCAR metadata parsing. |
|
Deals with VASP input output of POTCAR files. |
|
Handle file i/o for POTCAR files with one or more potentials. |
API#
- class aiida_vasp.parsers.content_parsers.potcar.PotcarParser(*, handler=None, data=None, settings=None, options=None)[source]#
Bases:
aiida_vasp.parsers.content_parsers.base.BaseFileParserA lightweight interface that provides access to POTCAR metadata parsing.
Similar to the other content parser for VASP in structure, but only used directly in the POTCAR handling logic.
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 metadata#
Return the metadata Potcar instance.
- class aiida_vasp.parsers.content_parsers.potcar.PotcarIo(**kwargs)[source]#
Deals with VASP input output of POTCAR files.
Instanciate with one of the following kwargs:
- Parameters:
path – (string) absolute path to the POTCAR file
potcar_node – a PotcarData node
potcar_file_node – a PotcarFileNode
contents – a string with the POTCAR content
Initialization
Init from Potcar object or delegate to kwargs initializers.
- property file_node#
- property node#
- property content#
- class aiida_vasp.parsers.content_parsers.potcar.MultiPotcarIo(potcars=None)[source]#
Handle file i/o for POTCAR files with one or more potentials.
Initialization
- classmethod read(path)[source]#
Read a POTCAR file that may contain one or more potentials into a list of PotcarIo objects.
- property potcars#
- classmethod from_structure(structure, potentials_dict)[source]#
Create a MultiPotcarIo from an AiiDA StructureData object and a dictionary with a potential for each kind in the structure.
- get_potentials_dict(structure)[source]#
Get a dictionary {kind_name: PotcarData} that would fit the structure.
If the PotcarData contained in MultiPotcarIo do not match the structure, an exception is raised.
- property element_symbols#