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-32694: Split AP pipeline into ApPipeWithFakes #106
Conversation
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.
If you can please convince me that each of the camera-specific ApPipeWithFakes
pipelines are importing the correct processCcd
steps (isr, calibrate, characterize), then I will be very thrilled with all of this 😀
I hope I answered your question about More broadly, are you OK with the fact that |
e2b0366
to
53c5d3a
Compare
I'm good with the restructuring you did to make the fakes pipeline stand alone - there are arguments to be made for having it import more from regular ApPipe, but I see why doing it this way makes ap_verify's life easier, and the labels are more clear and less likely to accidentally... I don't know... make a template with fakes and forget to use it 🙃 My only quibbles are with definitions of the subsets, as discussed above. If we can sort that out, AND if you're sure ap_verify (which imports the new ApPipeWithFakes pipelines) runs fine on both DECam and HSC datasets, then I'm quite happy. |
Explicitly defining a parameter for each possible dataset was too much of a hassle, so instead I rewrote the contracts to be template-agnostic.
Keeping the two pipelines separate makes it easier to enforce only the contracts that make sense for each pipeline. This is especially important for the fakes pipeline, where some configuration bugs may not get caught by the graph builder.
This prevents confusion between with-fakes and no-fakes versions of the same task, which happens in ap_verify.
ApVerifyWithFakes was using a different science exposure for difference imaging and forced photometry.
53c5d3a
to
f185107
Compare
The config line was added to the base pipeline on #106, but never synced to the instrument-specific pipelines.
This PR significantly reworks the AP pipelines, making two major changes:
ApPipeWithFakes
pipeline no longer importsApPipe
, giving it independent task labels and contracts. This change is strictly for the benefit ofap_verify
(which needs to be careful about distinguishing fakes and non-fakes tasks), and does not improveap_pipe
itself.