Skip to content

Commit

Permalink
Fix _sub handling in Gen2->Gen3 shim Butler code.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo authored and yalsayyad committed Jan 23, 2019
1 parent 79c42fc commit 242ce42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/shims.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get(self, datasetType, dataId=None, immediate=True, **rest):
fullDataId = self._makeDataId(dataId, **rest)
if datasetType.endswith("_sub"):
import lsst.afw.image
datasetType = datasetType[:len("_sub")]
datasetType = datasetType[:-len("_sub")]
parameters = dict(bbox=fullDataId.pop("bbox"))
origin = fullDataId.pop("origin", lsst.afw.image.PARENT)
parameters["origin"] = origin
Expand Down

0 comments on commit 242ce42

Please sign in to comment.