pestifer.core.config module¶
A class for parsing the config file and creating the Config object
Pestifer’s user-configuration input uses ycleptic, an enhanced, YAML-based
configuration file manager. The Config object is a descendent of the
Yclept class. It also houses the pestifer.core.resourcemanager.ResourceManager object, which manages
access to the contents of Pestifer’s pestifer.resources subpackage.
- class pestifer.core.config.Config(userfile='', userdict={}, quiet=False, RM: ResourceManager = None, basefile: str = '', ncpus_override: int = 0)[source]¶
Bases:
YcleptA class for managing the configuration of Pestifer. This class extends the
ycleptic.yclept.Ycleptclass to provide additional functionality specific to Pestifer’s configuration needs.- Parameters:
userfile (str, optional) – Path to the user-specific configuration file. If not provided, the default configuration is used.
userdict (dict, optional) – A dictionary of user-specific configuration options. If not provided, the default configuration is used.
quiet (bool, optional) – If True, suppresses output to the console. Default is False.
RM (ResourceManager) – An instance of the ResourceManager class, which manages access to the contents of Pestifer’s resources.
basefile (str) – Optional name of the Ycleptic-format base file