Skip to content

Commit

Permalink
Fixing Ian comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSanchez committed Oct 12, 2023
1 parent 518889d commit fc2f8aa
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/test_subtractTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,21 +741,16 @@ def test_fake_mask_plane_propagation(self):
for a_science_source in science_fake_sources:
# 3 x 3 masking of the source locations is fine
bbox = lsst.geom.Box2I(
lsst.geom.Point2I(
a_science_source.getX(),
a_science_source.getY()),
lsst.geom.Extent2I(3, 3)
)
lsst.geom.Point2I(a_science_source.getX(), a_science_source.getY()), lsst.geom.Extent2I(3, 3)
)
science[bbox].mask.array |= science_mask_planes

for a_template_source in tmplt_fake_sources:
# 3 x 3 masking of the source locations is fine
bbox = lsst.geom.Box2I(
lsst.geom.Point2I(
a_template_source.getX(),
a_template_source.getY()),
lsst.geom.Extent2I(3, 3)
)
lsst.geom.Point2I(a_template_source.getX(), a_template_source.getY()),
lsst.geom.Extent2I(3, 3)
)
template[bbox].mask.array |= template_mask_planes

science_fake_masked = (science.mask.array & science.mask.getPlaneBitMask("FAKE")) > 0
Expand Down

0 comments on commit fc2f8aa

Please sign in to comment.