GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
224 stars 105 forks source link

Allow the template keyword to use an eval #1138

Closed cwwalter closed 2 years ago

cwwalter commented 2 years ago

I would like to be able to do something like

template: $os.environ.get('IMSIM_DIR') + "/config/imsim-config.yaml"

instead of this:

template: /Users/walter/LSST/imSim/config/imsim-config.yaml

Currently, this isn't possible because the template really needs to be a string. The motivation is to be able to write generic driving yaml files which don't need to be modified for different site installation setups.

rmjarvis commented 2 years ago

This was done in #1143.