-
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
Constructors #26
Constructors #26
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26 +/- ##
=========================================
- Coverage 89.65% 86.36% -3.3%
=========================================
Files 1 2 +1
Lines 58 66 +8
=========================================
+ Hits 52 57 +5
- Misses 6 9 +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.4.0" | |||
version = "0.5.0-DEV" |
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 think we can directly use 0.5.0
here.
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 have plans for another PR after this one to allow string construction, which is mostly written already so it could make sense to push that one as 0.5.0
This pull request adds some extra constructors. This depends on #25 to be merged first, so I will leave it as a draft until then.
I've added some constructors that follow this syntax
which can also allow the convenient piping syntax
I know the piping syntax is somewhat controversial, but I think for these type conversions it is a really clean way to signify the conversion. I really like its usage in Unitful, for example.
So far I've added the appropriate constructors for each type and added in tests to check they are converted in the same way as
Base.convert
does. As it stands, there might be interest in adding some sort of metaprogramming to write these constructors since they are somewhat consistent across all types (although not perfect because of the equinox parameter for FK5).I've incremented version to
0.5.0-dev