romtools.hpc.components.component#
Shared construction for the helpers that the dispatchers compose.
Classes
|
Base for the helpers that act on a campaign's directories. |
|
Base for the dispatcher's helpers: each carries the dispatcher's configuration and logger, and stands alone with defaults for both. |
- class romtools.hpc.components.component.CampaignComponent(*, campaign_directory=None, config=None, logger=None)[source]#
Bases:
ComponentBase for the helpers that act on a campaign’s directories.
One rule decides what “no run directory” means, so submitting a job and staging its inputs cannot disagree about where the work happens.
- Parameters:
campaign_directory (str) – The directory work happens in when given no run_directory
config (dict)
logger (Logger)
- class romtools.hpc.components.component.Component(*, config=None, logger=None)[source]#
Bases:
objectBase for the dispatcher’s helpers: each carries the dispatcher’s configuration and logger, and stands alone with defaults for both.
- Parameters:
config (dict) – The dispatcher’s configuration dictionary
logger (Logger) – An instance of the Logger class for logging