LSSTDESC / gcr-catalogs

A Python module that provides a unified interface to access mock galaxy catalogs and more for the LSST DESC
https://github.com/LSSTDESC/gcr-catalogs
BSD 3-Clause "New" or "Revised" License
26 stars 20 forks source link

Allow user to select config source via environment variable #639

Closed JoanneBogart closed 1 month ago

JoanneBogart commented 1 month ago

Allow user to specify config source via environment variable GCR_CONFIG_SOURCE (acceptable values are dataregistry or files) so that they don't have to modify code to make the choice.
Also use value of GCR_DR_SCHEMA if set to specify dataregistry schema to use; otherwise default to "production".

JoanneBogart commented 1 month ago

Thank you, @yymao, for attending to this so quickly!