poli.core.util.objective_management.make_run_script.make_run_script#
- poli.core.util.objective_management.make_run_script.make_run_script(problem_factory: Type[AbstractProblemFactory], conda_environment_name: Optional[Union[str, Path]] = None, python_paths: Optional[List[str]] = None, cwd=None, **kwargs) str #
Create a run script for a given problem factory.
- Parameters
problem_factory (AbstractProblemFactory) – The problem factory to create the run script for.
conda_environment_name (str or Path, optional) – The conda environment to use for the run script. Either a string containing the name, or a path to the environment.
python_paths (list of str, optional) – A list of paths to append to the python path of the run script.
cwd (str or Path, optional) – The working directory of the run script.
- Returns
run_script – The generated run script.
- Return type
str