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-29583: Create dataset class for extended PSF models #495

Merged
merged 2 commits into from Apr 15, 2021

Conversation

MorganSchmitz
Copy link
Contributor

Main PR for DM-29583, the other being in daf_butler.

Jenkins run #33904 contains these changes, plus those of DM-25305 (ticket was split in two).

Copy link
Member

@arunkannawadi arunkannawadi left a comment

Choose a reason for hiding this comment

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

I haven't looked at the test file carefully enough yet, and I'll go over them once you address these comments and rebase it. Also, the filename in snake case stands out oddly when compared to other files, but I guess that's okay given the recent discussions about naming of files in Slack?

python/lsst/pipe/tasks/extended_psf.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Outdated Show resolved Hide resolved
python/lsst/pipe/tasks/extended_psf.py Outdated Show resolved Hide resolved
tests/test_extended_psf.py Outdated Show resolved Hide resolved
tests/test_extended_psf.py Outdated Show resolved Hide resolved
@MorganSchmitz
Copy link
Contributor Author

Thanks a lot for all the comments, Arun. It should all be ready for your eyes again.

I agree the snake_case filename stands out for now, but I think that's just part of our slowly transitioning to mostly-snake_case...? ¯_(ツ)_/¯

python/lsst/pipe/tasks/extended_psf.py Show resolved Hide resolved
if has_default and md["REGION"] == "DEFAULT":
if md["EXTNAME"] == "IMAGE":
default_image = afwImage.ImageF(filename, hdu=j)
elif md["EXTNAME"] == "MASK":
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a small test to check this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh. This should be covered by this test (both image and mask are always saved).

Did it show as uncovered by coverage.py?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, this is what it says as missing: 66-68, 83-89, 112-118, 129-132, 154-158, 169-195, 200, 212-250, 256. Most of them are where you raise an error.

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

I haven't looked into the test file in as much detail as the other one, except that it covers all the line. I made a few minor comments about what is not covered by the unittest, but that's me testing out the tool coverage.py. It is upto you to add some test cases to cover them, especially the MASK one.

@arunkannawadi
Copy link
Member

And oh, reminder to fixup your review round 1 commit with the other ones.

@MorganSchmitz
Copy link
Contributor Author

Will do! I like to leave it during the review process so the referee can get GitHub's diff to show changes before everything gets squashed together.

Thanks tons, Arun!

@MorganSchmitz MorganSchmitz merged commit 105b12a into master Apr 15, 2021
@MorganSchmitz MorganSchmitz deleted the tickets/DM-29583 branch April 15, 2021 16:37
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

2 participants