ExpressBase.Action
— TypeRepresent an atomic action for a specific Calculation
type.
ExpressBase.Calculation
— TypeRepresent all materials calculations.
ExpressBase.Files.extension
— Methodextension(file)
Get the extension from file
. Return an empty String
if no extension is found.
ExpressBase.Files.load
— Methodload(file)
Load data from file
to a Dict
.
By now, YAML
, JSON
, and TOML
formats are supported. The format is recognized by the file extension.
ExpressBase.Files.of_format
— Methodof_format(destination, source)
Convert source
to the format of destination
. Similar to oftype
.
ExpressBase.Files.parentdir
— Methodparentdir(file)
Get the directory of a file
.
The problem of dirname
is that it returns an empty string if users do not write "./"
in the file
path. This will cause an error in tempname
.
ExpressBase.Files.save
— Methodsave(file, data)
Save data
to file
.
By now, YAML
, JSON
, and TOML
formats are supported. The format is recognized by the file extension.
If data
is a Dict
, its keys should be String
s so that load
can return the same data
.
Allowed data
types can be referenced in JSON.jl
documentation and YAML.jl
documentation. For TOML
format, only AbstractDict
type is allowed.