sloop.env

Functions

check_env_vars(env_vars)

Check that the given list of env variables are set

check_exp_dir(exp_dir[, errors])

Check that an experiment directory is valid

check_vapp(vapp)

Check that vapp is valid

check_vortex_dir(vortex_dir)

Check that the vortex directory is valid

get_field_from_config(conf, section, key)

Load config from a section in config.ini file

get_section_from_config(conf, section)

Load section in config.ini file

guess_hpc_target()

Get the current HPC target name

is_os_cmd_avail(cmd)

Check if a command is available

load_config_from_dict(conf, sec)

Load environment variables from dict

load_env_config(conf, sec)

Load config from a section in config.ini file

show_exp_info(exp_dir)

Print some info about an experiment

stripout_conda_env([env_dict])

Remove conda env from PATH, LD_LIBRARY_PATH and C_INCLUDE_PATH

Classes

ContextEnv([stripout_conda])

Context for changing env vars

Exceptions

SloopEnvError(msg)