Skip to content

Register latex to Cosmology.write #12355

Closed

Description

@nstarman

Cosmology can now read and write to files.
It would be nice to register with Cosmology.write a method for exporting a Cosmology to a Latex table.
There are good examples of IO with Cosmology at https://github.com/astropy/astropy/tree/main/astropy/cosmology/io
and documentation at https://docs.astropy.org/en/latest/cosmology/io.html#cosmology-io

I'm thinking the write_latex(...) method would call cosmology.io.table.to_table(), format the table to e.g. make H0 -> $H_0 \rm{[Mpc]}$ or something and then call the QTable.write(..., format='latex').

Activity

  1. changed the title [-]Register format ``latex`` to the ``write`` method for exporting a Cosmology to a nice Latex table.[/-] [+]Register ``latex`` to ``Cosmology.write``[/+] on Nov 2, 2021
  2. Octaves0911 commented on Dec 26, 2021

    @Octaves0911

    Hi, I would like to work on this if no one else is currently on it.

  3. nstarman commented on Dec 27, 2021

    @nstarman
    MemberAuthor

    @Octaves0911, that would be great! No one else is currently working on this feature request. If you need any help or have any questions I am happy to help. You can post here, or in the Astropy Slack cosmology channel. We also have documentation to assist in contributing at https://www.astropy.org/contribute.html#contribute-code-or-docs.

  4. Octaves0911 commented on Dec 27, 2021

    @Octaves0911

    Thanks a lot I ll work on it and get in touch with you if i have any queries.

  5. moved this from Triage to Todo in Cosmology, the Expansionon Jan 13, 2022
  6. nstarman commented on Mar 3, 2022

    @nstarman
    MemberAuthor

    @Octaves0911, do you have any questions or need any assistance? I'm happy to help.

  7. Maia-jp commented on Apr 25, 2023

    @Maia-jp
    Contributor

    This issue is still open for contributions?

  8. nstarman commented on Apr 26, 2023

    @nstarman
    MemberAuthor

    Yes! It's been quiet here for a while, so we'd be happy for a contribution. I'm happy to help / review a PR!

  9. added a commit that references this issue on Apr 27, 2023
  10. added a commit that references this issue on May 17, 2023
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions