Skip to content

Commit

Permalink
Update scripts/add_gen3_repo.py
Browse files Browse the repository at this point in the history
Will squash.

Co-authored-by: Krzysztof Findeisen <kfindeisen@users.noreply.github.com>
  • Loading branch information
TallJimbo and kfindeisen committed Sep 26, 2020
1 parent 1809a5e commit 14d2e2a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/add_gen3_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,9 @@ def _export_for_copy(dataset, repo):
contents.saveDataIds(butler.registry.queryDataIds({"detector"}).expanded())
contents.saveDatasets(butler.registry.queryDatasets(datasetType=..., collections=...))
# Explicitly save the calibration collection.
# We filter on collection type rather than name to insulate a bit from
# naming convention changes. We need to _not_ include the RUN
# collections here because that will export an empty collection that
# looks like it should contain raws, and that's enough to confuse
# ap_verify logic that guards against ingesting raws twice.
# Do _not_ include the RUN collections here because that will export
# an empty raws collection, which ap_verify assumes does not exist
# before ingest.
for collection in butler.registry.queryCollections(..., collectionTypes={daf_butler.CollectionType.CALIBRATION}):
contents.saveCollection(collection)

Expand Down

0 comments on commit 14d2e2a

Please sign in to comment.