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-16297: Changes for Gen3 support of LSST data #170
Conversation
I'm not really sure what to do about the changes to ingest.py. On the one hand it's clearly a bug in our headers that |
I could check observation type is "science" but it seemed that checking for tracking RADec would be more reliable and we can rely on the translator to complain if RA/Dec is missing when it should be there.
Not all our LSST data includes INHERIT=T so they fail. We might need an alternative approach here so advice welcomed.
There is no reason to use the pex_exceptions version here.
The warnings are expected for simulation data from the future.
49960f3
to
c23874a
Compare
@czwa, @parejkoj this PR might be the most controversial bit of DM-16297. The problem is the forced merging of the primary header in ingest.py. I don't think we want to have special ingest code for gen3 instruments so this merging (which uses override mode so should be safe) is the general answer in the case where data has forgotten to set INHERIT=T (which is the case for some LSST data). |
I don't have much of a problem with special code for different Gen3 instruments, though it's obviously best minimized. The DM-17023 version of ingest already requires you to provide the fully-qualified All that said, could we use |
If ingestion already has to know the |
To clarify, the only danger here is that some other camera's data intentionally has I don't think I'm particularly worried about that case, especially if we do the merging such that the extension header cards win when there are conflicts with the primary. I guess I don't really have a problem with either approach. |
Yes. The second header always overwrites the first header so what my change does is mean that we always merge even if INHERIT=F and that is only going to be a problem if the first header is completely unrelated to the first empty header. I'm okay with merging the headers now until we get to a point where an instrument turns up where that is bad. |
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.
Looks good; only one minor comment beyond the (already converged) discussion above.
No description provided.