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-35207: add task to produce updated visit summaries #6
Conversation
5012f53
to
830a147
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only PR I've really looked at so far, and most of my comments are just optional suggestions for clarifications. I'm submitting this review now, but am going to pause before approving because I'm worried enough about the conjecture:
ComputeExposureSummaryStatsTask (which was actually written to work with afw.table, but Astropy is similar enough that it works, too)
that I'm going to get all the branches set up and run a local ci_hsc
to have a look at the outputs before moving on to the rest.
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Outdated
Show resolved
Hide resolved
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Outdated
Show resolved
Hide resolved
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Outdated
Show resolved
Hide resolved
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Show resolved
Hide resolved
Ok, yep, we have a problem. In my local
noting that It seems that the [And we'll also need to change the |
The |
It looks like all of the |
I was just wondering how any warps were getting made (i.e. selected) with all the psf metrics being
so they pass the threshold test! I guess we should be checking against ~np.isfinite too? |
Right, you can copy over the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've addressed all review comments except the "well, this is all silently broken" doozy at the end.
Thanks for the investigation on that, and I'll start my own where you left off. I am inclined to set the default PSF shape to the slot one down in ComputeSummaryStatisticsTask
, and then obliterating whatever try/catch
block made that table incompatibility a silent failure, but we'll see if there any knock-on effects.
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Outdated
Show resolved
Hide resolved
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Outdated
Show resolved
Hide resolved
doc/lsst.drp.tasks/tasks/lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask.rst
Show resolved
Hide resolved
# Convert the psf_star_catalog datasets from DataFrame to Astropy so | ||
# they can be handled by ComputeExposureSummaryStatsTask (which was | ||
# actually written to work with afw.table, but Astropy is similar | ||
# enough that it works, too). Ideally this would be handled by just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, back when I wrote this and looked at the usage your ticket hadn't merged yet. Smells like something is catching waaaay more exceptions than it should, and that's a real problem. I'll investigate.
975ccae
to
cee0825
Compare
We should follow the same approach as pipe_tasks here to minimize imports of code that's not needed, since this package is also going to be full of unrelated things.
This seems to work as far as the built docs go, but there are still a ton of warnings in the doc build ranging from plausibly-real ("can't find upstream thing that probably just isn't documented") to probably-bogus ("somethings wrong with the quoting on this line that is blank and has no quotes of any kind anywhere near it").
4486b0c
to
33ecf66
Compare
Ok, I think I've fixed the serious problem here as well, though my ci_hsc run to check that is ongoing. Pretty much all of those changes were over in pipe_tasks; here the only change is |
@@ -0,0 +1,762 @@ | |||
# This file is part of pipe_tasks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pipe_tasks -> drp_tasks
Garhhh...looks like
|
Tests here qre about all we can do without either some really intense mocking or cooking up a lot of fairly realistic data.
8100394
to
a730b85
Compare
No description provided.