Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-19671: Allow setConfigRoot to retain input values #157

Merged
merged 6 commits into from May 9, 2019
Merged

Conversation

timj
Copy link
Member

@timj timj commented May 8, 2019

Adjust setConfigRoot such that it will optionally not override values in the supplied config. This is the common use case from makeRepo where an external config would like to set a value for root, but that value was always being overridden.

Update makeRepo to disable overwrite.

timj added 3 commits May 8, 2019 10:51
Adjust setConfigRoot such that it will optionally not override values
in the supplied config.  This is the common use case from
makeRepo where an external config would like to set a
value for root, but that value was always being overridden.

Update makeRepo to disable overwrite.
The repository is created but the configuration for it is
written elsewhere.
Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me, few minor comments. Docstrings for setConfigRoot seem to literally repeat in few classes, not sure we can do anything about it.

python/lsst/daf/butler/core/config.py Show resolved Hide resolved
python/lsst/daf/butler/core/registry.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/config.py Show resolved Hide resolved
timj added 2 commits May 8, 2019 16:09
...since sometimes you can now ask not to override even if
you are updating.
@timj timj merged commit 8eaf31d into master May 9, 2019
@timj timj deleted the tickets/DM-19671 branch May 9, 2019 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants