Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit 77d2039

Browse files
committed
Use correct variable in list comprehension
The list comprehensions in the mapping functions were using a variable from above loops instead of the local comprehension variable. This change fixes that.
1 parent 8e05cff commit 77d2039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lsst/pipe/drivers/multiBandDriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ def runDataRef(self, patchRefList):
342342

343343
# Only process patches that have been identified as needing it
344344
pool.map(self.runMeasurements, [dataId1 for dataId1 in dataIdList if not self.config.reprocessing or
345-
patchReprocessing[dataId["patch"]]])
345+
patchReprocessing[dataId1["patch"]]])
346346
pool.map(self.runMergeMeasurements, [idList for patchId, idList in patches.items() if
347347
not self.config.reprocessing or patchReprocessing[patchId]])
348348
pool.map(self.runForcedPhot, [dataId1 for dataId1 in dataIdList if not self.config.reprocessing or
349-
patchReprocessing[dataId["patch"]]])
349+
patchReprocessing[dataId1["patch"]]])
350350

351351
# Remove persisted reprocessing determination
352352
if self.config.reprocessing:

0 commit comments

Comments
 (0)