utils.env_init_lines#

Back to Module page

Summary#

Creates text snippet to be added before submitting jobs to clusters

Signature#

def env_init_lines(env_command = None, module_name = None, env_name = None, python_name = None, cluster = 'helios')
Input variables#

Name

Type

Default

Description

env_command

None

Override the combination of module loading and sourcing the conda environment

module_name

None

Override module to be initialized

env_name

None

Override user-dependent conda environment name

python_name

None

Override user- and cluster-dependent python command name

cluster

‘helios’

Cluster being used, add options below for new clusters

Output variables#

Return annotation

Docstring type

Description

None

Text snippet that is to be added in the commands to the cluster (no ending space)

Docstring#

Creates text snippet to be added before submitting jobs to clusters
:param env_command:
    Override the combination of module loading and sourcing the conda
    environment
:param module_name: Override module to be initialized
:param env_name: Override user-dependent conda environment name
:param python_name: Override user- and cluster-dependent python command name
:param cluster: Cluster being used, add options below for new clusters
:return:
    Text snippet that is to be added in the commands to the cluster
    (no ending space)