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

Added initial astrometry source selector, base class and tests. #38

Merged
merged 1 commit into from Jun 30, 2016

Conversation

parejkoj
Copy link
Contributor

@parejkoj parejkoj commented Jun 29, 2016

This is the first non-PSF source selector, with a new base class for other such things. It was lifted from measOptimisticB for use by jointcal.


The additional tests for a good centroid, beyond isUsable, are:
- not interpolated in the center (this includes saturated sources,
so we don't test separately for that)
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is confusing, since it looks like you do test separately for saturated sources below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment was in the original code I stole this from (measOptimisticB). I added the separate saturated check, since I'm using fake data. I think I'd rather leave it in, to catch corner cases (plus, I don't know anything about how interpolatedCenter and saturated interact beyond that one comment).

@@ -0,0 +1,121 @@
# See COPYRIGHT file at the top of the source tree.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we do this now? It's nice and short, but I don't see a COPYRIGHT file anywhere in the meas_algorithms repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm taking this from jointcal, where I was told to do it that way (THE FUTURE!). I'll check with SQuaRE.

Copy link
Contributor Author

@parejkoj parejkoj Jun 29, 2016

Choose a reason for hiding this comment

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

Word from SQuaRE is that we can't quite do the switch yet on existing projects. @jonathansick is planning a full switch for the whole codebase VerySoonNow™. I've added the copyright at the top.

This is the first non-PSF source selector, with a new base class for other
generic catalog-based source selectors. It was lifted from measOptimisticB for
use by jointcal.

Although it passes all tests and should work as a replacement for SourceInfo
from matchOptimisticB, it appears to be not quite strict enough for jointcal
yet, so may require some more work for that.
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