Skip to content

Commit

Permalink
Replace queryCollections call in export
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 15, 2024
1 parent 04b15dc commit 67dc2f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/lsst/daf/butler/transfers/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,10 @@ def _computeDatasetAssociations(self) -> dict[str, list[DatasetAssociation]]:
collectionTypes = {CollectionType.TAGGED}
if datasetType.isCalibration():
collectionTypes.add(CollectionType.CALIBRATION)
resolved_collections = self._butler._registry.queryCollections(
resolved_collections = self._butler.collections.query(
self._collections.keys(),
datasetType=datasetType,
collectionTypes=collectionTypes,
flattenChains=False,
collection_types=collectionTypes,
flatten_chains=False,
)
with self._butler._query() as query:
query = query.join_dataset_search(datasetType, resolved_collections)
Expand Down

0 comments on commit 67dc2f6

Please sign in to comment.