-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add offset function #34
Conversation
Codecov Report
@@ Coverage Diff @@
## master #34 +/- ##
==========================================
+ Coverage 96.22% 99.13% +2.91%
==========================================
Files 2 2
Lines 106 116 +10
==========================================
+ Hits 102 115 +13
+ Misses 4 1 -3
Continue to review full report at Codecov.
|
@@ -1,7 +1,7 @@ | |||
name = "SkyCoords" | |||
uuid = "fc659fc5-75a3-5475-a2ea-3da92c065361" | |||
authors = "Kyle Barbary, Mosé Giordano, and contributors" | |||
version = "0.5.0" | |||
version = "0.6.0" |
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.
I'd go to v1.0 at this point. The main API is quite stable, we usually only add new features
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.
Hm, I disagree. I think #6 needs to be decided on, since it could change the API.
This PR adds two functions called
offset
. The first takes a coordinate, separation in rad, and position angle in rad and returns another coordinate. This is equivalent to theSkyCoord.directional_offset_by
method. The other version takes two sky coordinates and returns a tuple of the separation and position angle.Docs have been added, along with tests for accuracy, type stability, and integration (finding the offset between two coords and then offsetting one should return the other). Doc preview should show up at https://juliaastro.github.io/SkyCoords.jl/previews/PR34.
I've also bumped package version to
0.6.0
so we can release after this is merged.