casm.vasp.io.Incar

class casm.vasp.io.Incar(filename, species=None, poscar=None, sort=True)[source]

Bases: object

The INCAR class contains:
tags: a dict of all INCAR settings

All input tags and associated values are stored as key-value pairs in the dicionary called ‘tags’.

Construct an Incar object from ‘filename’

__init__(filename, species=None, poscar=None, sort=True)[source]

Construct an Incar object from ‘filename’

Methods

__init__(filename[, species, poscar, sort]) Construct an Incar object from ‘filename’
read(filename[, species, poscar, sort]) Read an INCAR file
update(species, poscar[, sort]) Update Incar object to reflect Species settings
write(filename)
_check_string_tag(tag, value)[source]

Check that string-valued tags are allowed values

_make_natural_type()[source]

Convert self.tags values from strings into their ‘natural type’ (int, float, etc.)

_verify_tags()[source]

Check that only allowed INCAR tags are in self.tags

read(filename, species=None, poscar=None, sort=True)[source]

Read an INCAR file

update(species, poscar, sort=True)[source]

Update Incar object to reflect Species settings