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-42431: Implement a new task to produce shear compatible warps #895

Merged
merged 2 commits into from Mar 26, 2024

Conversation

arunkannawadi
Copy link
Member

No description provided.

@arunkannawadi
Copy link
Member Author

I promise I'll squash the commits into one, or may be two before merging.

python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made lots of minor comments about naming and backwards compatibility, and bigger one about (probably pre-existing) concerns with order of operations. But overall this looks good; it's just nailing down the details that remains.

Also, should we consider moving this task to drp_tasks?

python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved

@classmethod
def _get_bad_mask(cls, exp: ExposureF, badMaskPlanes: Iterable[str]) -> ExposureF:
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra newline.

python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
@arunkannawadi
Copy link
Member Author

Also, should we consider moving this task to drp_tasks?

makeWarp, which this task is hoping to replace, is used in ApTemplate pipeline. This was my main motivation to keep this in pipe_tasks.

python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
self.config.coaddPsf.makeControl(),
)

final_warp.setPsf(coaddPsf)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on Miranda's test, we will need to set filter label and photo calib here.

with self.timer("warp"):
exposure = self.warper.warpExposure(wcs, exposure, maxBBox=maxBBox, destBBox=destBBox)
exposure.setPsf(psfWarped)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I didn't mean to remove these lines. Putting them back.

python/lsst/pipe/tasks/makeDirectWarp.py Outdated Show resolved Hide resolved
@arunkannawadi arunkannawadi force-pushed the tickets/DM-42431 branch 2 times, most recently from 52a92f6 to 5b06ea8 Compare March 26, 2024 02:03
@arunkannawadi arunkannawadi changed the title DM-42431: Implement a new task to produce shear compatible warps (and coadds) DM-42431: Implement a new task to produce shear compatible warps Mar 26, 2024
@arunkannawadi arunkannawadi force-pushed the tickets/DM-42431 branch 2 times, most recently from 90b7353 to 124deb9 Compare March 26, 2024 19:37
@arunkannawadi arunkannawadi merged commit 1162b98 into main Mar 26, 2024
2 checks passed
@arunkannawadi arunkannawadi deleted the tickets/DM-42431 branch March 26, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants