-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cleaner look for lt_radec #411
Conversation
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.
Looks good to me, apart for a couple of comments for your consideration.
linetools/scripts/lt_radec.py
Outdated
@@ -43,10 +43,15 @@ def main(args=None): | |||
coord = ltu.radec_to_coord(icoord) | |||
|
|||
# Time to print | |||
print('===================================') | |||
print('J{:s}{:s}'.format(coord.ra.to_string(unit=u.hour,sep='',pad=True), |
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 would remove this "===== ..." header, as no every terminal has monospace fonts.
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.
changed to a blank line (helps to have that separation)
linetools/scripts/lt_radec.py
Outdated
print('J{:s}{:s}'.format(coord.ra.to_string(unit=u.hour,sep='',pad=True), | ||
coord.dec.to_string(sep='',pad=True,alwayssign=True))) | ||
print(' ') | ||
print(' {:s} {:s}'.format(coord.ra.to_string(unit=u.hour,sep=':',pad=True), | ||
coord.dec.to_string(sep=':',pad=True,alwayssign=True))) |
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.
Say explicitly that these are J2000 coordinates somewhere?
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.
added. good suggestion.
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.
Looks good to me.
merging |
As advertised.
Small changes for a somewhat cleaner look.