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-29326: Fix logic of the doVignette option in isrTask #11

Merged
merged 2 commits into from
Dec 1, 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
2 changes: 1 addition & 1 deletion python/lsst/cp/verify/verifyDefects.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import numpy as np
import scipy
import scipy.stats

from .verifyStats import CpVerifyStatsConfig, CpVerifyStatsTask, CpVerifyStatsConnections

Expand Down
7 changes: 4 additions & 3 deletions python/lsst/cp/verify/verifyStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import lsst.pipe.base.connectionTypes as cT
import lsst.meas.algorithms as measAlg

from lsst.cp.pipe.cpCombine import vignetteExposure
from lsst.ip.isr.vignette import maskVignettedRegion
from lsst.pipe.tasks.repair import RepairTask
from .utils import mergeStatDict

Expand Down Expand Up @@ -248,8 +248,9 @@ def run(self, inputExp, camera, taskMetadata=None):
outputStats = {}

if self.config.doVignette:
vignetteExposure(inputExp, doUpdateMask=True, maskPlane='NO_DATA',
doSetValue=False, log=self.log)
polygon = inputExp.getInfo().getValidPolygon()
maskVignettedRegion(inputExp, polygon, maskPlane='NO_DATA',
vignetteValue=None, log=self.log)

mask = inputExp.getMask()
maskVal = mask.getPlaneBitMask(self.config.maskNameList)
Expand Down