Skip to content

Use astropy infrastructure for automated creation of RST tables in the docs #2011

@kbwestfall

Description

@kbwestfall

FWIW, the AstroPy table object (tbl in this case) can write a RST table directly without the need for PypeIt's custom string_table() function.

https://docs.astropy.org/en/latest/api/astropy.io.ascii.RST.html#astropy.io.ascii.RST

For instance, lines 26-35 could be replaced by:

tbl.write(ofile, format="ascii.rst", overwrite=True)

It may be worth it to consider relying on that infrastructure.

Originally posted by @tbowers7 in #2002 (comment)

Metadata

Metadata

Assignees

Labels

DocsDocumentation-only issue or PR

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions