Skip to content

Commit

Permalink
Add streak mask plane to test exposure util
Browse files Browse the repository at this point in the history
Need have a STREAK mask plane in the exposure, otherwise
the pixelFlags plugin will fail, and we cannot run
maskStreaksTask directly since it's in pipe_tasks.
  • Loading branch information
parejkoj authored and mrawls committed Oct 19, 2023
1 parent f4f8d7a commit eef69e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/ip/diffim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,7 @@ def detectTestSources(exposure):
sigma=None, # The appropriate sigma is calculated from the PSF
doSmooth=True
)
exposure.mask.addMaskPlane("STREAK") # Cannot run maskStreaksTask here, as it's in pipe_tasks
selectSources = detRet.sources
selectMeasurement.run(measCat=selectSources, exposure=exposure)

Expand Down

0 comments on commit eef69e8

Please sign in to comment.