bandsSileSiesta¶
-
class
sisl.io.siesta.
bandsSileSiesta
(filename, mode='r', comment='#')[source]¶ bands Siesta file object
Attributes
file
File 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_data
(*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 -
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**kwargs
as arguments.
-
read_data
(*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
**kwargs
as arguments.
-