Closed jrapin closed 1 year ago
Allows to add a setup step for local cluster. When using a setup step we need (?) to use shell=True though
This allows changing the conda env before triggering the job with something like:
string = subprocess.check_output("conda info --base".split(), shell=False.decode("utf8") cfile = Path(string.strip()) / "etc/profile.d/conda.sh" cmds = [ f". {cfile.absolute()}", "conda deactivate", f"conda activate {self.conda_env}", ] executor.update_parameters(local_setup=cmds, slurm_setup=cmds)
I'm not an expert with subprocesses, I could not make it work without changing to shell=True when there is a setup step, I expect that may not be possible? + probably would fail in many cases unexpected by the user
Allows to add a setup step for local cluster. When using a setup step we need (?) to use shell=True though
This allows changing the conda env before triggering the job with something like: