-
Notifications
You must be signed in to change notification settings - Fork 21
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 - Ordinal Function #7
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7 +/- ##
==========================================
+ Coverage 99.78% 99.78% +<.01%
==========================================
Files 56 57 +1
Lines 931 943 +12
==========================================
+ Hits 929 941 +12
Misses 2 2
Continue to review full report at Codecov.
|
Thank you so much for your contribution! However I have some comments:
Another, minor, stylistic comment: please remove trailing whitespaces. I think this is enough. Are you able to fix everything y yourself? Anyway, that was a good start! |
Thank you for the detailed reply.
I'll make the necessary changes including the test set. Should I add those changes as further commits on this branch or create a new PR? |
No, it's not necessary to closely follow the original implementation. Well, I mostly did so, but the important is to obtain exact results paying attention to performance.
Just keep editing your branch (you can either amend the commit or push new changes), this PR will be updated, no need to open a new one. Thanks! |
Only another comment: |
* TODO.md: remove from the list * docs/src/ref.md: add "ordinal" entry to the manual * src/misc.jl: move to the "misc" collection, rather than "utils" * src/ordinal.jl: use full stop at the end of the sentence. Show example `ordinal` applied on a vector. * test/misc-tests.jl: move test here and test on a vector, it’s more concise.
I installed a few minor changes related to the organization of the code and merged the PR. Thanks! |
Thanks, I'll make a note of the changes for future PRs |
Translated the simple Ordinal IDL AstroLib procedure, which returns the English equivalent of ordinal numbers, i.e. '1st','2nd' etc.
PR for the same.
Note - Used if-else statements (unlike cases in the original IDL AstroLib procedure) while translating as Julia lacks a C-style switch statement.