From fe3295f63b525d0aaca8eb21c996a64a79502a1f Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Mon, 1 Jun 2026 21:26:42 +0200 Subject: [PATCH] Fix deprecation warning in latexify_rst_text. PendingDeprecationWarning: Argument "writer_name" will be removed in Docutils 2.0. Specify writer name in the "writer" argument. --- scopesim/reports/rst_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scopesim/reports/rst_utils.py b/scopesim/reports/rst_utils.py index b6e854b1..e3e97948 100644 --- a/scopesim/reports/rst_utils.py +++ b/scopesim/reports/rst_utils.py @@ -314,7 +314,7 @@ def latexify_rst_text(rst_text, filename=None, path=None, title_char="=", text = "Title\n<<<<<\nSubtitle\n>>>>>>>>\n\n" parts = publish_parts( text + rst_text, - writer_name="latex", + writer="latex", # Settings_overrides to placate FutureWarnings. # TODO: Decide whether the future defaults look better. settings_overrides={ @@ -362,7 +362,7 @@ def table_to_rst(tbl, indent=0, rounding=None): for col in tbl.itercols(): if col.info.dtype.kind == "f": col.info.format = f".{rounding}f" - + tbl_fmtr = TableFormatter() lines, outs = tbl_fmtr._pformat_table(tbl, max_width=-1, max_lines=-1, show_unit=False)