POSCARSileVASP¶
-
class
sisl.io.vasp.POSCARSileVASP(filename, mode='r', comment='#')[source]¶ Attributes
fileFile of the current Sile Methods
__init__(filename[, mode, comment])exist()Query whether the file exists 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_geometry(*args, **kwargs)read_supercell(*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, reread])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_geometry(*args, **kwargs)-
exist()¶ Query whether the file exists
-
file¶ File of the current Sile
-
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=True)¶
-
line_has_keys(line, keys, case=True)¶
-
read(*args, **kwargs)¶ Generic read method which should be overloaded in child-classes
Parameters: **kwargs :
keyword arguments will try and search for the attribute
read_<>and call it with the remaining**kwargsas arguments.
-
read_geometry(*args, **kwargs)¶
-
read_supercell(*args, **kwargs)¶
-
readline(comment=False)¶ Reads the next line of the file
-
step_either(keywords, case=True)¶ Steps the file-handle until the keyword is found in the input
-
step_to(keywords, case=True, reread=True)¶ 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
Parameters: **kwargs :
keyword arguments will try and search for the attribute write_ and call it with the remaining
**kwargsas arguments.
-
write_geometry(*args, **kwargs)¶
-