add_sile¶
-
sisl.io.
add_sile
(ending, cls, case=True, gzip=False, _parent_cls=None)[source]¶ Add files to the global lookup table
Public for attaching lookup tables for allowing users to attach files externally.
Parameters: ending : str
The file-name ending, it can be several file endings (.TBT.nc)
cls : child of BaseSile
An object that is associated with the respective file. It must be inherited from
BaseSile
.case : bool, optional
Whether case sensitivity is applicable for determining file.
gzip : bool, optional
Whether files with
.gz
endings can be read. This option should only be given to files with ASCII text output. It will automatically call:add_sile(ending+’.gz’,...,gzip=False)
to add the gzipped file to the list of possible files.