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

Read colnames of LaTeX files with units as written by Astropy #5237

Closed
wants to merge 1 commit into from

Conversation

wmwv
Copy link
Contributor

@wmwv wmwv commented Aug 11, 2016

This is a partial solution to reading of LaTeX tables written by astropy.io.ascii.aastex that had units included. This solution only reads out the colnames, it does not read the units.

It does this by spliting off first r'' delimited section of tablehead to be AASTex colnames

It can read cases where the \tablehead is all one line (as is that produced by units-enabled astropy.io.ascii.aastex), but fails on cases where the \tablehead command is split over several lines in the table file (which was also previously true for the Latex and AASTeX readers).

@@ -321,6 +321,16 @@ class AASTexHeaderSplitter(LatexSplitter):
This splitter expects the following LaTeX code **in a single line**:

\tablehead{\colhead{col1} & ... & \colhead{coln}}

If the \tablehead defines multiple output lines separated by \\
Copy link
Member

Choose a reason for hiding this comment

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

I think that everything that's code (even LaTeX code) should be enclosed like this:

If the `\tablehead`

so that sphinx renders it nicely.

@hamogu
Copy link
Member

hamogu commented Aug 12, 2016

I think you mentioned that you had looked at the tests for round-tripping. Can you add that test to this PR? It's always good to test a new feature or a bug fix when it's implemented.

Also, can you add an entry under "bug fixes" in the CHANGES.rst file?

@wmwv wmwv mentioned this pull request Aug 12, 2016
@astropy-bot
Copy link

astropy-bot bot commented Sep 27, 2017

Hi humans 👋 - this pull request hasn't had any new commits for approximately 1 year, 1 month. I plan to close this in a month if the pull request doesn't have any new commits by then.

In lieu of a stalled pull request, please close this and open an issue instead to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary.

If you believe I commented on this issue incorrectly, please report this here.

@astropy-bot
Copy link

astropy-bot bot commented Nov 21, 2017

⏰ Time's up! ⏰

I'm going to close this pull request as per my previous message. If you think what is being added/fixed here is still important, please remember to open an issue to keep track of it. Thanks!

If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants