panoptes / panoptes-utils

A set of Astronomical utility functions. PANOPTES style. :hammer_and_wrench: :telescope: :stars:
https://panoptes-utils.readthedocs.io
MIT License
4 stars 9 forks source link

Config getter should accept default without keyword #268

Closed wtgee closed 3 years ago

wtgee commented 3 years ago

The panoptes.utils.config.client.get_config function currently accepts a default keyword to return a default. This should be changed to work without the keyword to mimic a standard dict.get.

Currently:

from panoptes.utils.config.client import get_config

foo = get_config('foo', default='bar')

Desired:

from panoptes.utils.config.client import get_config

foo = get_config('foo', 'bar')