File Path Management
- class vivarium_cluster_tools.psimulate.paths.InputPaths(model_specification, branch_configuration, artifact, result_directory)[source]
Container class for input filepaths.
In addition to the path attributes, this class provides a method to create the required directories.
- Parameters:
- classmethod from_entry_point_args(*, result_directory, input_model_specification_path=None, input_branch_configuration_path=None, input_artifact_path=None)[source]
Create an instance of InputPaths from the arguments passed to the entry point.
- Return type:
- Parameters:
result_directory (str | Path) – The path to the results directory.
input_model_specification_path (str | Path | None) – The path to the model specification file.
input_branch_configuration_path (str | Path | None) – The path to the branch configuration file.
input_artifact_path (str | Path | None) – The path to the data artifact.
- Returns:
An instance of InputPaths.
- class vivarium_cluster_tools.psimulate.paths.OutputPaths(root, logging_root, worker_logging_root, metadata_dir, environment_file, model_specification, keyspace, branches, results_dir, backup_dir, backup_metadata_path)[source]
Container class for output filepaths.
In addition to the path attributes, this class provides a method to create the required directories as well as a class method to create an instance from the arguments passed to the entry point.
- Parameters:
- property logging_to_central_results_directory: bool
Whether the logs are being written to the central results directory.