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-16593: Decam VisitInfo ExposureId set incorrectly #99

Merged
merged 1 commit into from Nov 28, 2018

Conversation

ctslater
Copy link
Member

This also cleans up a bit of unnecessary code looking in HDU0 for the dark time,
and what looks like a slightly messed up rebase in test_getRaw.py.

Copy link
Contributor

@morriscb morriscb left a comment

Choose a reason for hiding this comment

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

Looks good to me. I've run some DECam data through the ap_verify system and can confirm that the pipelines appear to run correctly.

@morriscb
Copy link
Contributor

Looking at the comment @hsinfang made on the ticket, it seems as if there are other places where the visitInfo is set from metadata from the header of hdu "0". Will this cause more problems with the data products produced with these functions? It seems to be in the functions bypass_instacal, std_flat, and std_dark.

exposureId = self._computeCcdExposureId(dataId)
visitInfo = self.makeRawVisitInfo(md=md0, exposureId=exposureId)
visitInfo = self.makeRawVisitInfo(md=md, exposureId=exposureId)
Copy link
Member

Choose a reason for hiding this comment

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

I am guessing that the reason the new translator tickled this is that the exposureId passed into the routine is now ignored and is there for backwards compatibility (all the dataId computations will be moved out of obs packages and handled by the metadata translator for gen3).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I hadn't realized it was ignored. I removed the parameter entirely now.

This also cleans up a bit of unnecessary code looking in HDU0 for the dark time,
a slightly messed up rebase in test_getRaw.py, adds an additional check on
fluxMag0 in instcals, and removes the unused exposureId parameter from calls to
makeRawVisitInfo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants