The precedent option allows the user to specify a string that precedes the executable in the mpi command. When running a python script, libEnsemble sets this precedent to the absolute path of the python interpreter by default. We observed that this can be an issue if the script needs to be executed in a different python environment provided by env_script (#214). Allowing the user to change the default behavior fixes this issue.
The extra_args allow the user to pass additonal arguments to the mpi command. This is a feature we used to expose in libe_opt (through an environment variable) but that was lost in the transition to optimas.
I also did some refactoring to simplify the sim_function.
precedent
option allows the user to specify a string that precedes the executable in the mpi command. When running a python script, libEnsemble sets this precedent to the absolute path of the python interpreter by default. We observed that this can be an issue if the script needs to be executed in a different python environment provided byenv_script
(#214). Allowing the user to change the default behavior fixes this issue.extra_args
allow the user to pass additonal arguments to the mpi command. This is a feature we used to expose inlibe_opt
(through an environment variable) but that was lost in the transition tooptimas
.sim_function
.