Configuration
To extract, parse, verify, and print the configuration parameters. They are stored in external files (case.toml) or dictionaries.
Source: config.jl
Contents
Index
ZenCore._v
ZenCore.cat_c
ZenCore.cat_d
ZenCore.cat_i
ZenCore.cat_m
ZenCore.cat_s
ZenCore.chk_dict
ZenCore.exhibit
ZenCore.get_c
ZenCore.get_d
ZenCore.get_i
ZenCore.get_m
ZenCore.get_s
ZenCore.inp_toml
ZenCore.rev_dict
ZenCore.setup
ZenCore.str_c
ZenCore.str_d
ZenCore.str_i
ZenCore.str_m
ZenCore.str_s
Functions
ZenCore.setup
— Functionsetup()
Read parameters from configuration file, and then setup the related dicts.
ZenCore.inp_toml
— Functioninp_toml(f::String, key::String, necessary::Bool)
Parse the configuration file (in toml format). It reads only parts of the configuration file, which depends on the value of key
.
See also: setup
.
inp_toml(f::String, necessary::Bool)
Parse the configuration file (in toml format). It reads the whole file.
See also: setup
.
ZenCore.rev_dict
— Functionrev_dict(cfg::Dict{String,Any})
Transfer configurations from dict cfg
to internal dicts (including PCASE
, PDFT
, PDMFT
, PIMP
, and PSOLVER
).
See also: chk_dict
.
ZenCore.chk_dict
— FunctionZenCore.exhibit
— FunctionZenCore._v
— Function_v(key::String, val::Array{Any,1})
Verify the value array. Called by chk_dict() function only.
See also: chk_dict
.
ZenCore.cat_c
— FunctionZenCore.cat_d
— FunctionZenCore.cat_m
— FunctionZenCore.cat_i
— FunctionZenCore.cat_s
— FunctionZenCore.get_c
— FunctionZenCore.get_d
— FunctionZenCore.get_m
— FunctionZenCore.get_i
— FunctionZenCore.get_s
— FunctionZenCore.str_c
— Functionstr_c(key::String)
Extract configurations from dict: PCASE, convert them into strings.
ZenCore.str_d
— Functionstr_d(key::String)
Extract configurations from dict: PDFT, convert them into strings.
ZenCore.str_m
— Functionstr_m(key::String)
Extract configurations from dict: PDMFT, convert them into strings.
ZenCore.str_i
— Functionstr_i(key::String)
Extract configurations from dict: PIMP, convert them into strings.
ZenCore.str_s
— Functionstr_s(key::String)
Extract configurations from dict: PSOLVER, convert them into strings.