sisl.io.table module

Sile object for reading/writing a file with tabular data

class sisl.io.table.TableSile(filename, mode='r', comment='#')[source]

Bases: sisl.io.sile.Sile

Table file object

Attributes

file File of the current Sile

Methods

ArgumentParser([parser]) Returns the arguments that may be 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_es(*args, **kwargs) Deprecated function which is superseeded by read_hamiltonian
read_geom(*args, **kwargs) Deprecated function which is superseeded by read_geometry
read_sc(*args, **kwargs) Deprecated function which is superseeded by read_supercell
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_data(data[, header, footer, newline, ...]) Write tabular data to the file with optional header.
write_es(*args, **kwargs) Deprecated function which is superseeded by write_hamiltonian
write_geom(*args, **kwargs) Deprecated function which is superseeded by write_geometry
write_sc(*args, **kwargs) Deprecated function which is superseeded by write_supercell
write_data(data, header=None, footer=None, newline='\n', fmt='%.5e', comment=None, delimiter='\t')[source]

Write tabular data to the file with optional header.