sisl.io.vasp.car module

Sile object for reading/writing CONTCAR/POSCAR files

class sisl.io.vasp.car.CARSileVASP(filename, mode='r', comment='#')[source]

Bases: sisl.io.vasp.sile.SileVASP

CAR file object This file-object handles both POSCAR and CONTCAR files

Attributes

file File of the current Sile

Methods

ArgumentParser(*args, **kwargs) Returns the arguments that is available for this Sile
ArgumentParser_out([parser]) Appends additional arguments based on the output of the file
is_keys(keys) Returns true if isinstance(keys,(list,np.ndarray))
key2case(key, case) Converts str/list of keywords to proper case
keys2case(keys, case) Converts str/list of keywords to proper case
line_has_key(line, key[, case])
line_has_keys(line, keys[, case])
read(*args, **kwargs) Generic read method which should be overloaded in child-classes
read_geom(*args, **kwargs)
read_sc(*args, **kwargs)
readline([comment]) Reads the next line of the file
step_either(keywords[, case]) Steps the file-handle until the keyword is found in the input
step_to(keywords[, case]) Steps the file-handle until the keyword is found in the input
write(*args, **kwargs) Generic write method which should be overloaded in child-classes
write_geom(*args, **kwargs)
ArgumentParser(*args, **kwargs)[source]

Returns the arguments that is available for this Sile

read_geom(*args, **kwargs)
read_sc(*args, **kwargs)
write_geom(*args, **kwargs)
class sisl.io.vasp.car.POSCARSileVASP(filename, mode='r', comment='#')[source]

Bases: sisl.io.vasp.car.CARSileVASP

Attributes

file File of the current Sile

Methods

ArgumentParser(*args, **kwargs) Returns the arguments that is available for this Sile
ArgumentParser_out([parser]) Appends additional arguments based on the output of the file
is_keys(keys) Returns true if isinstance(keys,(list,np.ndarray))
key2case(key, case) Converts str/list of keywords to proper case
keys2case(keys, case) Converts str/list of keywords to proper case
line_has_key(line, key[, case])
line_has_keys(line, keys[, case])
read(*args, **kwargs) Generic read method which should be overloaded in child-classes
read_geom(*args, **kwargs)
read_sc(*args, **kwargs)
readline([comment]) Reads the next line of the file
step_either(keywords[, case]) Steps the file-handle until the keyword is found in the input
step_to(keywords[, case]) Steps the file-handle until the keyword is found in the input
write(*args, **kwargs) Generic write method which should be overloaded in child-classes
write_geom(*args, **kwargs)
class sisl.io.vasp.car.CONTCARSileVASP(filename, mode='r', comment='#')[source]

Bases: sisl.io.vasp.car.CARSileVASP

Attributes

file File of the current Sile

Methods

ArgumentParser(*args, **kwargs) Returns the arguments that is available for this Sile
ArgumentParser_out([parser]) Appends additional arguments based on the output of the file
is_keys(keys) Returns true if isinstance(keys,(list,np.ndarray))
key2case(key, case) Converts str/list of keywords to proper case
keys2case(keys, case) Converts str/list of keywords to proper case
line_has_key(line, key[, case])
line_has_keys(line, keys[, case])
read(*args, **kwargs) Generic read method which should be overloaded in child-classes
read_geom(*args, **kwargs)
read_sc(*args, **kwargs)
readline([comment]) Reads the next line of the file
step_either(keywords[, case]) Steps the file-handle until the keyword is found in the input
step_to(keywords[, case]) Steps the file-handle until the keyword is found in the input
write(*args, **kwargs) Generic write method which should be overloaded in child-classes
write_geom(*args, **kwargs)