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-13477: Move association math from DIAObjectCollection into AssociationTask #11

Merged
merged 2 commits into from Feb 27, 2018

Conversation

morriscb
Copy link
Contributor

Moved the score and match methods from DIAObjectCollection into AssociationTask. Also fixed problems associated with SkyWcs.

Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

Overall this looks great. I have one request for more documentation that I feel strongly about, plus one or two other minor suggestions.


Returns
-------
lsst.pipe.base.Struc
Copy link
Contributor

Choose a reason for hiding this comment

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

Please document what fields the struct contains

Also Struc -> Struct

dia_collection.get_dia_object(obj_id).n_dia_sources, 1)
else:
self.assertEqual(
dia_collection.get_dia_object(obj_id).n_dia_sources, 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

What you have works, but I feel the following is a bit easier to read. Your choice.

        # We created a new DIAObject in the collection hence the last
        # DIAObject in this collection is new and contains only one
        # DIASource. All others contain two.
        self.assertEqual(
            dia_collection.get_dia_object(updated_ids[-1]).n_dia_sources, 1)
        for obj_id in updated_ids[0:-1]:
            self.assertEqual(
                dia_collection.get_dia_object(obj_id).n_dia_sources, 2)

Begining the redesign of DIAObjects into mor light weight afw.Table
objects.

Fix bugs in unittests.

Changed afwImage.makeWcs to new SkyWcs.
Removed cKDTree from association.py
Changed test values in test_association_task.py
Added description of struct output to associate_sources method.
Restructed score_and_match test case for clairity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants