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-14155 make jointcal compatible with other source selectors #83

Merged
merged 3 commits into from May 15, 2018

Conversation

parejkoj
Copy link
Collaborator

@parejkoj parejkoj commented May 2, 2018

This can't be merged until DM-9832 is finished.

@parejkoj parejkoj changed the title DM-14155 add test for flaggedSourceSelector DM-14155 make jointcal compatible with other source selectors May 2, 2018
@parejkoj parejkoj force-pushed the tickets/DM-14155 branch 5 times, most recently from d24278b to 8b9b43b Compare May 11, 2018 00:21
In addition to the sourceSelector API changes in DM-9832, jointcal wasn't
compatible with other sourceSelectors anyway. This fixes both issues.
Copy link

@isullivan isullivan 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. I had only minor comments.


return pa1, metrics

@unittest.skip("This test produces different chi2/ndof on Linux and macOS.")

Choose a reason for hiding this comment

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

If there is a ticket to investigate and fix this discrepancy, could you make a note of it here? And if there isn't one yet, I suggest you create one.

"""
self.config = lsst.jointcal.jointcal.JointcalConfig()
self.config.astrometryRefObjLoader.retarget(LoadAstrometryNetObjectsTask)
self.config.photometryRefObjLoader.retarget(LoadAstrometryNetObjectsTask)

Choose a reason for hiding this comment

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

Should these both be LoadAstrometryNetObjectsTask?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup. The reference catalog loader is the astrometry.net ObjectsLoader. Nothing to do with whether it's used for photometry or astrometry.

self.jointcalStatistics.do_astrometry = False

pa1 = 0.11
metrics = {'collected_photometry_refStars': 4865,

Choose a reason for hiding this comment

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

Some comment about where all these numbers come from would be helpful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They're all emperical, once I've gotten the code to actually work. That's true for all of the metrics blocks in jointcal's tests because I don't know the correct result a priori, except for the cfht_minimal test which was designed so that I could manually compute the correct answer.

I have a note in the readme about this: https://github.com/lsst/jointcal/blob/master/Readme.md

Do you think I should include a similar note along with each of these blocks?

Choose a reason for hiding this comment

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

Since the answer is slightly involved, I'd suggest you reference the Readme, or include that disclaimer once at the top of the file and reference that in tests with empirical test values.

self.jointcalStatistics.do_astrometry = False

pa1 = 0.026
metrics = {'collected_photometry_refStars': 825,

Choose a reason for hiding this comment

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

Some comment about where all these numbers come from would be helpful.

decam tests are skipped due to macOS/Linux mismatch. Sorting out that numeric
mismatch is outside the scope of this ticket, but is part of the scope of
figuring out why the constrainedPhotometryModel is not working, in general.
Added some more details about the test numbers to the readme, and referenced
it in tests that have such numbers.
@parejkoj parejkoj merged commit da8ddd7 into master May 15, 2018
@ktlim ktlim deleted the tickets/DM-14155 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants