Skip to content

Problem with commented header when reading a table  #15513

Description

@gabbmacedo

Im trying to read a table (isochrones) with a commented header but before the header there are more commented lines with infos (i dont want them). Below is the start of the table. The header begins at '' # Zini MH logAge ... " .
image
Im using ascii.read and tried format='commented_header' but i get this error:

InconsistentTableError: Number of header columns (13) inconsistent with data columns (36) at data line 0
Header values: ['File', 'generated', 'by', 'CMD', '3.7', '(http://stev.oapd.inaf.it/cmd)', 'on', 'Thu', 'Jun', '1', '22:48:51', 'CEST', '2023']

Any ideas?

Activity

  1. github-actions commented on Oct 19, 2023

    @github-actions
    Contributor

    Welcome to Astropy 👋 and thank you for your first issue!

    A project member will respond to you as soon as possible; in the meantime, please double-check the guidelines for submitting issues and make sure you've provided the requested details.

    GitHub issues in the Astropy repository are used to track bug reports and feature requests; If your issue poses a question about how to use Astropy, please instead raise your question in the Astropy Discourse user forum and close this issue.

    If you feel that this issue has not been responded to in a timely manner, please send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail [email protected].

  2. pllim commented on Oct 20, 2023

    @pllim
    Member
  3. hamogu commented on Jan 11, 2025

    @hamogu
    Member

    @gabbmacedo : This issue has been open for a year. Did you successfully read the table with the advice by @pllim ? If so, can we close the issue? If not, can you tell us what's still missing and maybe upload the table somewhere so we I can try myself on my computer and see what the problem might be?

  4. github-actions commented on Jan 14, 2025

    @github-actions
    Contributor

    Hi humans 👋 - this issue was labeled as Close? approximately 12 hours ago. If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I will close this issue in 7 days.

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

  5. github-actions commented on Jan 22, 2025

    @github-actions
    Contributor

    I'm going to close this issue as per my previous message, but if you feel that this issue should stay open, then feel free to re-open and remove the Close? label.

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions