Skip to content

Commit

Permalink
Merge pull request #13 from lsst/tickets/DM-24575
Browse files Browse the repository at this point in the history
DM-24575: Add observational and detector metadata to Registry dimension tables
  • Loading branch information
timj committed Aug 17, 2020
2 parents f50420e + 331d594 commit c1a9f65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion preloaded/gen3.sqlite3
Git LFS file not shown
4 changes: 2 additions & 2 deletions scripts/add_gen3_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ def _export_for_copy(dataset, repo):
butler = daf_butler.Butler(repo)
with butler.export(directory=dataset.configLocation, format="yaml") as contents:
# Need all detectors, even those without data, for visit definition
contents.saveDataIds(butler.registry.queryDimensions({"detector"}))
contents.saveDataIds(butler.registry.queryDataIds({"detector"}).expanded())
# RepoExport has no safeguards against redundant data
extraDimensions = set(butler.registry.dimensions.elements).difference(
{"detector", "instrument", "htm7", "abstract_filter"}
)
contents.saveDatasets(butler.registry.queryDatasets(datasetType=..., collections=..., expand=True),
contents.saveDatasets(butler.registry.queryDatasets(datasetType=..., collections=...),
elements=extraDimensions)


Expand Down

0 comments on commit c1a9f65

Please sign in to comment.