mantik.config.environment

Classes

Environment

Part of the backend-config where all variables

Module Contents

class mantik.config.environment.Environment[source]

Bases: mantik.config._base.ConfigObject

Part of the backend-config where all variables concerning the running environment are stored.

add_env_vars(env_vars: Dict) None[source]
execution: mantik.config.executable.Execution | None = None[source]
execution_given() bool[source]
modules: List | None = None[source]
post_run_command_on_compute_node: list | None = None[source]
post_run_command_on_login_node: list | None = None[source]
pre_run_command_on_compute_node: list | None = None[source]
pre_run_command_on_login_node: list | None = None[source]
set_srun_cpus_per_task_if_unset(resources: mantik.config.resources.Resources) Environment[source]
to_bash_script(entry_point_arguments: str) str[source]

Create a bash script for UNICORE.

to_slurm_batch_script(entry_point_arguments: str, run_dir: pathlib.Path) str[source]
to_unicore_job_description(bash_script_name: str) Dict[source]

Convert to UNICORE job description.

Parameters:

arguments (str) – Arguments to pass to the executable.

Returns:

The UNICORE job description.

For details see https://sourceforge.net/p/unicore/wiki/Job_Description # noqa: E501

Return type:

dict

variables: Dict | None = None[source]