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
Updating wcs fitting to match astropy #29
Conversation
w_obj: `~astropy.wcs.WCS` | ||
WCS object | ||
""" | ||
cd = params[0:4] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little dangerous to access parameters directly on indexes, if params[] changes structure in the future this would need to be updated and could be forgoten about. Minor comment though.
""" Objective function for fitting SIP. | ||
Parameters | ||
----------- | ||
params : array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment on passing index of parameter values with an assumed ordering...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future: may want to re-consider passing parameters via lists with assumed ordering and sizes, but if functional for now I think that is a minor improvement looking to future-proof the code. Not necessary for this pull request probably...
Thanks @scfleming! I'm not going to change for this PR, but those are great comments, and I'll make a note to look into submitting an improvement to astropy to future proof in that way. |
The PR resolves issue #22.
fit_wcs_from_points
to match what is in Astropy.