GalSim-developers / GalSim

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

Add feature to allow registration of templates #1143

Closed rmjarvis closed 2 years ago

rmjarvis commented 2 years ago

This PR adds the option to register template names, so people can use that rather than a file name.

The target use case is imSim, so it can register names like 'dc2_image' or 'flat_field', etc., which could point to a config file in the imSim repo. This file location is likely to be slightly obscure, so having a comprehensible alias would be both easier for the user and more portable across platforms.