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

ANetAstrometryConfig: add alias refObjLoader #28

Merged
merged 1 commit into from May 16, 2016
Merged

Conversation

SimonKrughoff
Copy link
Contributor

ANetAstrometryConfig names the 'refObjLoader' as 'solver', but users
(specifically, when getting the match metadata) can refer to it as
'refObjLoader'. This alias makes that work and allows us to use
astrometry.net again.

ANetAstrometryConfig names the 'refObjLoader' as 'solver', but users
(specifically, when getting the match metadata) can refer to it as
'refObjLoader'. This alias makes that work and allows us to use
astrometry.net again.
def refObjLoader(self):
"""An alias, for a uniform interface with the standard AstrometryTask"""
return self.solver

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 confused why we haven't seen this before. Is it because no one uses this class, or did you need to do something special?

Copy link
Contributor

Choose a reason for hiding this comment

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

The change triggering the problem is fairly recent (about a month ago; DM-5686), and I suspect no-one has used our astrometry.net solver since that went in.

Copy link
Contributor

Choose a reason for hiding this comment

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

Having looked at the code, I agree it's reasonable for now. This change can be reverted when we overhaul the way reference loading is done (e.g. pass in a reference loader to the the astrometry solver in order to support the new index loader).

@PaulPrice PaulPrice merged commit eda65d5 into master May 16, 2016
@ktlim ktlim deleted the tickets/DM-5988 branch August 25, 2018 06:15
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