Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanding task_template with arbitrary keyword arguments #7

Open
BoPeng opened this issue Jul 8, 2020 · 0 comments
Open

Expanding task_template with arbitrary keyword arguments #7

BoPeng opened this issue Jul 8, 2020 · 0 comments

Comments

@BoPeng
Copy link
Contributor

BoPeng commented Jul 8, 2020

task: mem='1G', cores=1, walltime='1m', modules=['R/3.6.1', 'anaconda3/2019.10']

with task_template

            #!/bin/bash
            #PBS -N {task}
            #PBS -l nodes={nodes}:ppn={ppn}
            #PBS -l walltime={walltime}
            #PBS -l mem={mem//10**9}GB
            #PBS -o /home/{user_name}/.sos/tasks/{task}.out
            #PBS -e /home/{user_name}/.sos/tasks/{task}.err
            #PBS -m ae
            #PBS -M email@address
            #PBS -v {workdir}

            module load {' '.join(modules)}
            {command}

does not work because keyword argument modules is not passed to template. As far as I remember, it was designed to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant