Add Quantity as a valid value_type in config #1194
Labels
config
Related to the config-processing functionality.
desc
Of possible interest to LSST DESC members looking for a project
notation/conventions
Related to choices of units, names of things, other semi-arbitrary conventions
There are a few places in GalSim where we have unit-ful values as parameters to various things, which are documented to assume a particular unit. (E.g. our wavelengths are all in nm.) It would be nice if the user could pass an astropy.Quantity for such things and specify their units without worrying about whether their assumption matches ours. This is even more true for some imsim values where both m and mm are plausible units for various distances in the telescope.
Proposal: Let such parameters be specified in a config dict as:
value
andunit
. This lets thevalue
(a float) be further processed by the normal config processing, if that is desired.The text was updated successfully, but these errors were encountered: