iodata.formats.poscar module¶
VASP 5 POSCAR file format.
This format is used by VASP 5.X and VESTA.
- load_one(lit)[source]¶
Load a single frame from a VASP 5 POSCAR file.
- Parameters:
lit (
LineIterator) – The line iterator to read the data from.- Return type:
- Returns:
result (dict) – A dictionary with IOData attributes. The following attributes are guaranteed to be loaded:
atcoords,atnums,cellvecs,title.
- prepare_dump(data, allow_changes, filename)[source]¶
Check the compatibility of the IOData object with the VASP 5 POSCAR format.
- Parameters:
- Return type:
- Returns:
data – The given
IODataobject, or a copy with a title on a single line.- Raises:
PrepareDumpError – If the title has more than one line and
allow_changesis False.