Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-31301: Fix VignetteExposure name #98

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/lsst/cp/pipe/cpCombine.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from astro_metadata_translator.serialize import dates_to_fits


__all__ = ['CalibStatsConfig', 'CalibStatsTask', 'VignetteExposure',
__all__ = ['CalibStatsConfig', 'CalibStatsTask', 'vignetteExposure',
'CalibCombineConfig', 'CalibCombineConnections', 'CalibCombineTask',
'CalibCombineByFilterConfig', 'CalibCombineByFilterConnections', 'CalibCombineByFilterTask']

Expand Down Expand Up @@ -341,7 +341,7 @@ def run(self, inputExps, inputScales=None, inputDims=None):

if self.config.doVignette:
polygon = inputExps[0].getInfo().getValidPolygon()
VignetteExposure(combined, polygon=polygon, doUpdateMask=True,
vignetteExposure(combined, polygon=polygon, doUpdateMask=True,
doSetValue=True, vignetteValue=0.0)

# Combine headers
Expand Down Expand Up @@ -575,7 +575,7 @@ class CalibCombineByFilterTask(CalibCombineTask):
pass


def VignetteExposure(exposure, polygon=None,
def vignetteExposure(exposure, polygon=None,
doUpdateMask=True, maskPlane="NO_DATA",
doSetValue=False, vignetteValue=0.0,
log=None):
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/cp/pipe/cpFlatNormTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import lsst.pex.config as pexConfig
import lsst.pipe.base as pipeBase
import lsst.pipe.base.connectionTypes as cT
from lsst.cp.pipe.cpCombine import VignetteExposure
from lsst.cp.pipe.cpCombine import vignetteExposure
from lsst.cp.pipe.utils import ddict2dict

from ._lookupStaticCalibration import lookupStaticCalibration
Expand Down Expand Up @@ -100,7 +100,7 @@ def run(self, inputExp):
List containing the statistics (`lsst.daf.base.PropertyList`).
"""
if self.config.doVignette:
VignetteExposure(inputExp, doUpdateMask=True, doSetValue=False, log=self.log)
vignetteExposure(inputExp, doUpdateMask=True, doSetValue=False, log=self.log)
mask = inputExp.getMask()
maskVal = mask.getPlaneBitMask(self.config.maskNameList)
statsControl = afwMath.StatisticsControl(self.config.numSigmaClip,
Expand Down