dgamore.config_parser#
YAML configuration parsing. ConfigParser reads the run’s YAML config (rank 0), broadcasts it to all MPI
ranks, and populates the global dgamore.config singletons section by section, falling back to the
*Config defaults for any missing key/section. The config file location is taken from the -p/-c
command-line arguments.
- class dgamore.config_parser.ConfigParser[source]#
Bases:
objectParses the config file and builds the global
dgamore.configsingletons (box,lattice,dmft, …). The configuration is then broadcast to all processes. The config file location can be specified with the path and/or name arguments when executing the main Python file.- parse_config(comm: mpi4py.MPI.Comm = None, path: str = './', name: str = 'dga_config.yaml')[source]#
Parses the config file on rank 0, broadcasts it to all ranks, and populates the global config singletons. The
-c/-pcommand-line arguments override thename/pathdefaults.