Skip to content

Commit

Permalink
Merge pull request #66 from lsst-sitcom/tickets/DM-41365
Browse files Browse the repository at this point in the history
DM-41365: Use new Butler get_dataset_type/find_dataset APIs
  • Loading branch information
timj committed Nov 3, 2023
2 parents 251969f + 7a15311 commit 39a5a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/summit/utils/butlerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def fillDataId(butler, dataId):
# using _rewrite_data_id is perhaps ever so slightly slower than popping
# the bad keys, or making a minimal dataId by hand, but is more
# reliable/general, so we choose that over the other approach here
dataId, _ = butler._rewrite_data_id(dataId, butler.registry.getDatasetType('raw'))
dataId, _ = butler._rewrite_data_id(dataId, butler.get_dataset_type('raw'))

# now expand and turn back to a dict
dataId = butler.registry.expandDataId(dataId, detector=0).full # this call is VERY slow
Expand Down Expand Up @@ -581,7 +581,7 @@ def getDatasetRefForDataId(butler, datasetType, dataId):
assert _dayobs_present(dataId) and _seqnum_present(dataId)
dataId.update(getExpIdFromDayObsSeqNum(butler, dataId))

dRef = butler.registry.findDataset(datasetType, dataId)
dRef = butler.find_dataset(datasetType, dataId)
return dRef


Expand Down

0 comments on commit 39a5a12

Please sign in to comment.