Skip to content

Commit

Permalink
Only look in output repos when deciding whether to reuse.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 3, 2017
1 parent 7f931b6 commit 603672a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/makeCoaddTempExp.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def run(self, patchRef, selectDataList=[]):
for i, (tempExpTuple, calexpRefList) in enumerate(groupData.groups.items()):
tempExpRef = getGroupDataRef(patchRef.getButler(), primaryWarpDataset,
tempExpTuple, groupData.keys)
if self.reuse and tempExpRef.datasetExists(datasetType=primaryWarpDataset):
if self.reuse and tempExpRef.datasetExists(datasetType=primaryWarpDataset, write=True):
self.log.info("Skipping makeCoaddTempExp for %s; output already exists.", tempExpRef.dataId)
dataRefList.append(tempExpRef)
continue
Expand Down

0 comments on commit 603672a

Please sign in to comment.