Skip to content

Follow-up for GSOC 2021: MRT writer in io.ascii #12130

Open

Description

@hamogu

In #11897, @Suyog7130 implemented a MRT writer for io.ascii. That is a very long PR, with >> 100 comments already and it has other PRs depending on it. To get this moving and to avoid excessive rebasing, we decided to split out a few comments about minor functionality, stylistic reworks and code improvements into this new issue.

Below is a list of thinks that we can tick off as they are addresses in follow-up PRs:

Activity

  1. taldcroft commented on Aug 30, 2021

    @taldcroft
    Member

    Is there a separate issue for splitting the format into CDS and MRT classes with distinct format names, or will that be tracked here?

  2. hamogu commented on Aug 30, 2021

    @hamogu
    MemberAuthor

    I'll add it to the list.

  3. Suyog7130 commented on Aug 31, 2021

    @Suyog7130
    Contributor

    @hamogu Thank you very much for opening up this issue.

  4. Suyog7130 commented on Oct 30, 2021

    @Suyog7130
    Contributor

    Regarding #12302 (comment)

    Earlier we hadn't set any default number of digits and different machines, linux/Windows/Mac, computed values with different precision, resulting in test failures. We decided upon the pico-arcsecond precision as the hard-coded default, arguing that the user would prefer a higher default precision. They have the option to strip the number of digits using format if required. But default 3-6 digit precision is indeed good from the perspective of MRT tables which are used in publications. Whereas, since CDS tables are typically saved in the Vizier database, so there the usage requirement may differ.

    I have a small suggestion.
    As you say, we can have a keyword in cdsdict/mrtdict (or a direct keyword to the write function) for the purpose of setting precision of the coordinate columns after splitting. We also ultimately want the division into component columns to work for tables with multiple coordinate columns, with the resultant components being numbered like RAs_1, RAs_2 ... etc. The keyword argument can be used to set arcsecond precision of all the coordinate columns.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions