Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions python/lsst/pipe/tasks/measurementDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,9 +1139,9 @@ def _ensureValidInputs(
processed by this multi-band driver.
bands :
List of bands associated with the exposures in ``mExposure`` after
potential adjustments. If not provided in the input, it will be set
to a list containing only the provided (or inferred as "unknown")
``refBand`` value.
potential adjustments. If not provided for single-band input when
using this multi-band driver, it will be set to a list containing
only the provided (or inferred as "unknown") ``refBand`` value.
"""

# Perform basic checks that are shared with all driver tasks.
Expand Down Expand Up @@ -1375,12 +1375,14 @@ def _buildMultibandExposure(
# function's signature, even when using a single band.
mExposure = afwImage.MultibandExposure.fromExposures(bands, [mExposureData])

# Attach the WCS from each input exposure to the corresponding band of
# the multi-band exposure; otherwise, their WCS will be None,
# potentially causing issues downstream. Note that afwImage does not do
# this when constructing a MultibandExposure from exposures.
# Attach the WCS and ApCorrMap from each input exposure to the
# corresponding band of the multi-band exposure; otherwise, their WCS
# and ApCorrMap will be None, potentially causing issues downstream.
# Note that afwImage does not handle this when constructing a
# MultibandExposure from exposures.
for band, exposure in zip(bands, mExposureData):
mExposure[band].setWcs(exposure.getWcs())
mExposure[band].setApCorrMap(exposure.getInfo().getApCorrMap())

return mExposure

Expand Down
Loading