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-17025: Template handling enhancements #134

Merged
merged 17 commits into from Feb 28, 2019
Merged

DM-17025: Template handling enhancements #134

merged 17 commits into from Feb 28, 2019

Conversation

timj
Copy link
Member

@timj timj commented Feb 20, 2019

  • Add support for instrument overrides in formatter and template selection.

Makes it easier to write unit tests comparing to templates.
In config files "instrument<name>" can be used to specify
an override for the named instrument to use.
Now wherever a config file has keys that can be StorageClass
names, DatasetType names or "instrument<xxx>" overrides,
the parsing of this is done in one place and a new LookupKey
object is created and used as the key in the mappings.

This provides the ground work for supporting Dimensions
in config files.
@timj timj marked this pull request as ready for review February 25, 2019 18:14
@timj timj requested a review from TallJimbo February 25, 2019 18:14
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Some minor comments. Overall looks great!

python/lsst/daf/butler/core/fileTemplates.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/formatter.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/configSupport.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/datasets.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/configSupport.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/formatter.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/formatter.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/mappingFactory.py Show resolved Hide resolved
python/lsst/daf/butler/core/mappingFactory.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/core/fileTemplates.py Outdated Show resolved Hide resolved
@timj timj merged commit fa6888d into master Feb 28, 2019
@timj timj deleted the tickets/DM-17025 branch February 28, 2019 23:08
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