sisl.io.BaseSile

class sisl.io.BaseSile

Bases: object

Base class for all sisl files

Methods

dir_file([filename, filename_base])

File of the current Sile

exist()

Query whether the file exists

read(*args, **kwargs)

Generic read method which should be overloaded in child-classes

write(*args, **kwargs)

Generic write method which should be overloaded in child-classes

base_file

File of the current Sile

file

File of the current Sile

property base_file

File of the current Sile

dir_file(filename=None, filename_base='')[source]

File of the current Sile

exist()[source]

Query whether the file exists

property file

File of the current Sile

read(*args, **kwargs)[source]

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.

write(*args, **kwargs)[source]

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.