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

Register latex to Cosmology.write #12355

Open
nstarman opened this issue Nov 2, 2021 · 3 comments
Open

Register latex to Cosmology.write #12355

nstarman opened this issue Nov 2, 2021 · 3 comments

Comments

@nstarman
Copy link
Member

@nstarman nstarman commented Nov 2, 2021

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').

@nstarman nstarman created this issue from a note in Cosmology, the Expansion (Interoperability) Nov 2, 2021
@nstarman nstarman changed the title Register format latex to the write method for exporting a Cosmology to a nice Latex table. Register latex to Cosmology.write Nov 2, 2021
@Octaves0911
Copy link

@Octaves0911 Octaves0911 commented Dec 26, 2021

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

@nstarman
Copy link
Member Author

@nstarman nstarman commented Dec 27, 2021

@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.

@Octaves0911
Copy link

@Octaves0911 Octaves0911 commented Dec 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Cosmology, the Expansion
  
Interoperability
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants