optimas-org / optimas

Optimization at scale, powered by libEnsemble
https://optimas.readthedocs.io
Other
22 stars 13 forks source link

Unable to run a `.py` template with a different python environment #214

Open AngelFP opened 3 months ago

AngelFP commented 3 months ago

When using a TemplateEvaluator with an env_script that loads a different python environment, libeEnsemble still tries to run the template with the optimas python.

This seems to be because the precedent attribute of an Application is set by default to the python path of the optimas environment.

What would be the best way of fixing this? By exposing the precedent parameter in the TemplateEvaluator?