Skip to content

Commit

Permalink
Use butler.get() rather than deprecated getDirect()
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Apr 3, 2023
1 parent 3b994c1 commit 636bc2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/pipe/tasks/script/makeDiscreteSkyMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def makeDiscreteSkyMap(repo, config_file, collections, instrument,
raise LookupError(msg, *e.args[1:])

datasets = butler.registry.queryDatasets('calexp', collections=collections)
wcs_bbox_tuple_list = [(butler.getDirect(ref.makeComponentRef("wcs")),
butler.getDirect(ref.makeComponentRef("bbox")))
wcs_bbox_tuple_list = [(butler.get(ref.makeComponentRef("wcs")),
butler.get(ref.makeComponentRef("bbox")))
for ref in datasets]
task = MakeDiscreteSkyMapTask(config=config)
result = task.run(wcs_bbox_tuple_list, oldSkyMap)
Expand Down

0 comments on commit 636bc2a

Please sign in to comment.