RunScheduleManager
Utility class to manage and access run files from run_schedules.yaml.
Attributes
attributeconfig_path= run_schedules_dir / 'run_schedules.yaml'attributeconfig_dir= self.config_path.parentFunctions
func__init__(self, config_path=None)Initialize the manager and load run schedules.
paramselfparamconfig_pathstr or Path= NonePath to a custom run_schedules.yaml file. When None, the
default file shipped with mdfactory/run_schedules/ is used.
Returns
Nonefunc_get_run_schedules_dir(self) → PathReturn the path to the run_schedules directory inside the package.
paramselfReturns
pathlib.Pathfunc_load_schedules(self)Load the run schedules from YAML file.
paramselfReturns
Nonefunc_get_config(self, engine, system_type, version=None) → DictGet the configuration for a specific engine/system_type combination.
paramselfparamenginestrparamsystem_typestrparamversionOptional[str]= NoneReturns
typing.Dictfuncget_settings(self, engine, system_type, version=None) → DictGet the computational settings for a specific configuration.
paramselfparamenginestrparamsystem_typestrparamversionOptional[str]= NoneReturns
typing.Dictfuncget_all_run_file_paths(self, engine, system_type, version=None) → Dict[str, Path]Get paths to all run files for a specific configuration.
paramselfparamenginestrparamsystem_typestrparamversionOptional[str]= NoneReturns
typing.Dict[str, pathlib.Path]funccheck_target_folder(self, engine, system_type, target_folder, version=None) → Tuple[bool, Dict[str, bool], List[str]]Check if run files already exist in the target folder.
paramselfparamenginestrparamsystem_typestrparamtarget_folderUnion[str, Path]paramversionOptional[str]= NoneReturns
typing.Tuple[bool, typing.Dict[str, bool], typing.List[str]]funccopy_run_files_with_check(self, engine, system_type, target_folder, version=None, force_copy=False) → Dict[str, bool]Copy run files to the target folder after checking for conflicts.
paramselfparamenginestrSimulation engine name (e.g. "gromacs").
paramsystem_typestrSystem category (e.g. "bilayer", "mixedbox").
paramtarget_folderstr or PathDestination directory for the copied files.
paramversionstr= NoneConfiguration version string. Uses the latest when None.
paramforce_copybool= FalseOverwrite existing files if True. Default is False.
Returns
typing.DictMapping of filename to copy success. All values are False when
files exist and force_copy is False.
funccopy_run_files(self, engine, system_type, target_folder, version=None, overwrite=False) → Dict[str, bool]Copy run files to a target folder.
paramselfparamenginestrSimulation engine name.
paramsystem_typestrSystem category.
paramtarget_folderstr or PathDestination directory. Created if it does not exist.
paramversionstr= NoneConfiguration version string. Uses the latest when None.
paramoverwritebool= FalseOverwrite existing files if True. Default is False.
Returns
typing.DictMapping of filename to whether the copy succeeded.
funcget_run_schedules_path(self) → PathReturn the path to the run_schedules directory.
paramselfReturns
pathlib.Pathfunclist_available_configs(self) → List[Dict[str, str]]List all available engine/system_type/version combinations.
paramselfReturns
typing.List[typing.Dict[str, str]]funclist_engines(self) → List[str]List all available engines.
paramselfReturns
typing.List[str]funclist_system_types(self, engine=None) → List[str]List all available system types, optionally filtered by engine.
paramselfparamengineOptional[str]= NoneReturns
typing.List[str]