Utility
Some simple convenience functions for development.
Contents
Index
WannierIO.get_latticeWannierIO.get_recip_latticeWannierIO.isbinaryWannierIO.isbinaryWannierIO.parse_boolWannierIO.parse_boolWannierIO.parse_float
Fortran related
WannierIO.isbinary — Methodisbinary(filename::AbstractString)Check if the file is in binary format.
WannierIO.isbinary — Methodisbinary(chars::Vector{UInt8})Check if a sequence of chars is binary.
WannierIO.parse_bool — Methodparse_bool(s::AbstractString)Parse a string as bool.
This is capable of parsing Fortran outputs, e.g., .true., .false., true, T.
WannierIO.parse_bool — Methodparse_bool(i::Integer)Parse an integer as bool.
0:false1or-1:true
WannierIO.parse_float — Methodparse_float(s::AbstractString)Parse a string as Float64.
The is capable of parsing Fortran outputs, e.g. 1.0D-10, to the ordinary 1e-10.
Lattice
WannierIO.get_lattice — Methodget_lattice(recip_lattice::Mat3)Return lattice.
WannierIO.get_recip_lattice — Methodget_recip_lattice(lattice::Mat3)Return reciprocal lattice.