Skip to content

Commit

Permalink
fixup: post reivew fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Nov 27, 2023
1 parent f9bf391 commit 4010cf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/lsst/drp/tasks/assemble_cell_coadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import numpy as np
from lsst.cell_coadds import (
CellIdentifiers,
CoaddUnits,
CommonComponents,
GridContainer,
MultipleCellCoadd,
Expand Down Expand Up @@ -96,7 +97,7 @@ class AssembleCellCoaddConfig(PipelineTaskConfig, pipelineConnections=AssembleCe
calc_error_from_input_variance = Field[bool](
doc="Calculate coadd variance from input variance by stacking "
"statistic. Passed to AccumulatorMeanStack.",
default=True,
default=False,
)
max_maskfrac = RangeField[float](
doc="Maximum fraction of masked pixels in a cell. This is currently "
Expand Down Expand Up @@ -183,7 +184,7 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):
)

self.common = CommonComponents(
units=None, # until the ScaleZeroPointTask can scale it to nJy.
units=CoaddUnits.legacy, # until the ScaleZeroPointTask can scale it to nJy.
wcs=inputData["skyInfo"].patchInfo.wcs,
band=outputDataId.get("band", None),
identifiers=PatchIdentifiers.from_data_id(outputDataId),
Expand Down Expand Up @@ -259,7 +260,7 @@ def _construct_grid_container(self, skyInfo, statsCtrl):
stacker = AccumulatorMeanStack(
# The shape is for the numpy arrays, hence transposed.
shape=(cellInfo.outer_bbox.height, cellInfo.outer_bbox.width),
bit_mask_value=statsCtrl.getAndMask(),
bit_mask_value=afwImage.Mask.getPlaneBitMask(self.config.bad_mask_planes),
calc_error_from_input_variance=self.config.calc_error_from_input_variance,
compute_n_image=False,
)
Expand Down

0 comments on commit 4010cf0

Please sign in to comment.