Skip to content

Commit

Permalink
Use correct variable in list comprehension
Browse files Browse the repository at this point in the history
The list comprehensions in the mapping functions were using a
variable from above loops instead of the local comprehension
variable. This change fixes that.
  • Loading branch information
natelust committed Aug 24, 2018
1 parent 8e05cff commit 77d2039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/pipe/drivers/multiBandDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ def runDataRef(self, patchRefList):

# Only process patches that have been identified as needing it
pool.map(self.runMeasurements, [dataId1 for dataId1 in dataIdList if not self.config.reprocessing or
patchReprocessing[dataId["patch"]]])
patchReprocessing[dataId1["patch"]]])
pool.map(self.runMergeMeasurements, [idList for patchId, idList in patches.items() if
not self.config.reprocessing or patchReprocessing[patchId]])
pool.map(self.runForcedPhot, [dataId1 for dataId1 in dataIdList if not self.config.reprocessing or
patchReprocessing[dataId["patch"]]])
patchReprocessing[dataId1["patch"]]])

# Remove persisted reprocessing determination
if self.config.reprocessing:
Expand Down

0 comments on commit 77d2039

Please sign in to comment.