Skip to content
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

Merged
merged 2 commits into from
Sep 21, 2017
Merged

Cleaner look for lt_radec #411

merged 2 commits into from
Sep 21, 2017

Conversation

profxj
Copy link
Contributor

@profxj profxj commented Sep 21, 2017

As advertised.

Small changes for a somewhat cleaner look.

Copy link
Contributor

@ntejos ntejos left a 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.

@@ -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),
Copy link
Contributor

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.

Copy link
Contributor Author

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)

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)))
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added. good suggestion.

Copy link
Contributor

@ntejos ntejos left a 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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 71.628% when pulling 08c9c77 on lt_radec into 21556df on master.

@profxj
Copy link
Contributor Author

profxj commented Sep 21, 2017

merging

@profxj profxj merged commit caeeb2c into master Sep 21, 2017
@profxj profxj deleted the lt_radec branch September 21, 2017 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants